Emacs Tramp连接失败,“没有这样的目录”

时间:2012-12-29 19:21:54

标签: emacs aquamacs

我希望使用Tramp模式编辑远程Linux机器上的文件,所以我打开一个这样的文件:

C-x C-f /ssh:hwolff@<host>:/home/hwolff/temp.txt

但是没有提示输入密码,保存文件会出现错误“没有这样的目录”。 Emacs似乎将文件路径视为本地路径,而不是尝试连接到远程计算机。我可以毫无问题地通过SSH连接到那台机器。

在SO讨论Emacs Tramp unable to open directory at times之后,我尝试打开tramp-debug-buffer,但没有出现调试缓冲区。

来自* Messages *缓冲区的相关行:

Use M-x make-directory RET RET to create the directory and its parents
...
Saving file /ssh:hwolff@<host>:/home/hwolff/temp.txt...
ad-Orig-error: /ssh:hwolff@<host>:/home/hwolff/: no such directory

我像这样加载了Tramp:

(load-file "/Applications/Aquamacs.app/Contents/Resources/lisp/net/tramp.elc")

这似乎工作正常,Emacs似乎报告说Tramp准备好了:

M-x tramp-version
2.1.10

我在Mac OS 10.7.5上运行Emacs 23.3.1作为Aquamacs:

GNU Emacs 23.3.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
of 2011-03-18 on braeburn.aquamacs.org - Aquamacs Distribution 2.2

0 个答案:

没有答案
相关问题