2014-04-20 5 views
0

나는 이맥스 트램프에서 plink.exe를 사용하여 SSH를 시도하고있다. 나는 정상적인 터미널에서 작동 plink.exe을 다운로드 한 적이 있지만 나는패스워드를 보낸 후 트램프가 멈춤

CX Cf를 미니 버퍼에서

/[email protected]:/afs/cad/u/g/g/gg88/public_html/index.html 

에게,

Tramp: Waiting for prompts from remote shell also appears. 

C를 사용하는 경우 :/사용자/이름/이맥스 -24.3/bin 여기서 plink.exe는 exec-path에 있습니다. .emacs에는이 줄만 포함되어 있습니다. 간부 경로를 확인하는 것이 포함되어 있습니까 후에 그러나 디렉토리 plink.exe은에

(require 'tramp) 
(setq tramp-default-method "plink") 

이 다 가고, MX의 eshell을 사용하여도 아무 문제가 없습니다 :. /Users/name/emacs-24.3/bin, 그리고

를 실행
plink.exe [email protected] 

다음 단계로이 작업을 수행하려면 어떻게해야합니까?

편집 당함 경로 변수에 직접 가용 스루풋 경로를 추가하여 인식 할 수 있도록 가용 스루풋 여전히 버퍼

Tramp: Waiting for prompts from remote shell also appears. 

문제를

Edit2가 메시지를

Tramp: Opening connection for [email protected] using plink... 
Tramp: Sending command `plink -l gg88 -ssh afs1.njit.edu && exit || exit' 

Tramp: Waiting for prompts from remote shell 
Tramp: Sending Password 
Tramp: Waiting for prompts from remote shell [7 times] 
Tramp: Sending command `plink -l gg88 -ssh afs1.njit.edu && exit || exit' 
Tramp: Opening connection for [email protected] using plink...done 
Quit [2 times] 
+0

OT1H 당신은 "plink.exe가 exec-path에있는 디렉토리를 추가했습니다"라고 말했지만 OTOH에서는 exec-path를 만지지 않는 .emacs를 보여줍니다. 무엇 이니? BTW, Tramp는 기본적으로 활성화되어 있으므로'(require 'tramp)'는 필요 없습니다. – Stefan

+0

plink.exe가 bin에있는 곳에 (add-to-list 'exec-path "C :/Users/name/emacs24-3/bin") 사용했습니다. .emacs에는 없지만 C-h v exec-path로 값을 확인할 때 그 경로는 여전히 존재합니다. – Garvin

+0

마지막으로 PINK 변수에 추가하여 plink를 인식하지만 Tramp : 원격 쉘에서 프롬프트 대기 중이 나타납니다. 여전히 문제입니다 – Garvin

답변

0

먼저 내에 plink.exe가 있습니다.

다음 내 emacs-24 디렉토리에 runemacs.bat 파일에 모든 것을 포장 :

SET HOME=D:\\benoit 
SET PATH=%PATH%;%HOME%\.emacs.d\bin 
start %CD%\bin\runemacs.exe 

그리고 그것은 작동합니다. 때로는 emacs for windows/tramp/putty/whatever messes 때문에 새로운 시작을 얻으려면 tramp-cleanup-all-connections을 실행하십시오. tramp은 emacs 24.2 번들과 함께 번들로 제공되지만, 24.3 번 버젼은 버그가 있으므로 수동으로 업데이트해야 할 수도 있습니다.

+0

이 솔루션을 사용해 보았지만 "Tramp : Remote shell에서 프롬프트 대기 중"이라는 메시지가 계속 나타납니다. 문제는 대신 로그인 프롬프트를 찾는 정규식과 관련이 있다고 생각합니다. – Garvin