我认为这是使用tramp非常基础的问题,但对我来说却不起作用。 我有一个指向我的亚马逊ec2机器的~/.ssh/config文件。
Host amazon
Hostname xxxx.amazonaws.com
Port yyy
User me
IdentityFile ~/.ssh/ubuntu
ForwardAgent yes
我可以轻松地从终端执行ssh amazon命令,并且成功连接到Amazon EC2(所以我的配置没问题),但是在Emacs中执行以下命令:
C-x C-f /ssh1:amazon:
我总是在 Aquamacs 中遇到这个错误:
Process *tramp/ssh1 amz* exited abnormally with code 255
在Emacs中:tramp: Opening connection at amz using ssh1...
tramp: Waiting for prompts from remote shell
tramp: Waiting 60s for prompt from remote shell
tramp-process-actions: Login failed
我还有其他的SSH配置,他们通过SSH连接到我本地虚拟机也遇到了同样的问题。
非常感谢任何帮助。
man ssh_config
。 - DJJ