[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: plink + tramp の設定について



>>>>> [meadow-users-jp : No.6392] にて
>>>>> 深川さんは書きました:
深川> FC2 環境の openssh-server に接続しようとすると、

FC2 って何ですか?
Fedora Core 2のことでしょうか?


深川> (setq exec-path (cons (expand-file-name "d:/usr/local/putty") exec-path))
深川> (modify-coding-system-alist 'process "plink.exe" 'utf-8-unix)
深川> (setq tramp-default-method "plink.exe"
深川>       tramp-completion-without-shell-p t)
深川> (require 'tramp)

設定に特に問題はないと思います。


深川> (setq tramp-debug-buffer t) にして取り出したログは、以下になります。
深川> -------------------------------ここから-------------------------------
深川> # Opening connection for T.Fukagawa@xxxxxxxxx using plink.exe...
深川> # Waiting 60s for local shell to come up...
深川> Microsoft Windows XP [Version 5.1.2600]
深川> (C) Copyright 1985-2001 Microsoft Corp.

深川> c:\DOCUME~1\TBF39~1.FUK\LOCALS~1\Temp># Sending command `  || exit'
深川> # Waiting for prompts from remote shell
深川> # Waiting 60s for prompt from remote shell on host plink.exe
深川> # Found remote shell prompt on `plink.exe'
深川> $ unset HISTORY
深川> unset HISTORY
深川> 'unset' は、内部コマンドまたは外部コマンド、
深川> 操作可能なプログラムまたはバッチ ファイルとして認識されていません。

リモート側(Fedora Core?)で実行されるべきコマンドが、ローカル側
(Windows)で実行されているようですね。

tramp で、きちんとリモートマシンを指定していますか?

;; もしかして、ローカルに sshd が立ち上がっていて、そちらに接続し
;; ていたりして。

--
三好 雅則 http://www.boreas.dti.ne.jp/~miyoshi/