请问有人可以帮我设置Emacs Tramp以进行双跳吗? 我想在machine2.abc.def.edu上工作,但只能通过machine1.abc.def.edu连接。我的用户名是myname,在两台机器上都相同。
我尝试添加.emacs:
(add-to-list 'tramp-default-proxies-alist
'("\\`machine2\\.abc\\.def\\.edu\\'"
"\\`myname\\'"
"/ssh:machine1\\.abc\\.def\\.edu:"))
这是我对手册内容的最佳猜测解释。然后我执行: C-x C-f /ssh:machine2.abc.def.edu 或者: C-x C-f /ssh:rsuhada@machine2.abc.def.edu
但两者都会出现以下情况:
ssh: Could not resolve hostname ssh: nodename nor servname provided, or not known
Process *tramp/scpc ssh* exited abnormally with code 255
我使用的Aquamacs无法退出,必须从shell中终止它...这里有一个两年前的帖子提出了相同的问题。我已经尝试过那里的答案:
(add-to-list 'tramp-default-proxies-alist
'("machine2.abc.def.edu"
nil
"/ssh:myname@machine1.abc.def.edu:"))
对于我能想到的所有组合,结果都相同......但在machine1.abc.def.edu上进行远程编辑是可以正常工作的。
tramp-verbose
变量,以查看是否可以获得更多信息。 - phils