tramp模式不起作用(ssh无法解析主机名)?

时间:2016-03-08 01:25:19

标签: emacs ssh tramp

本周早些时候,我尝试通过tramp模式(ubuntu 14.04)进入我的实验室机器(我经常这样做),现在它似乎无法正常工作。我已经尝试检查所有文件夹权限,ssh实际上有效(在终端中,甚至嵌套在emacs中)。但是,它仍然不会连接我。我在.ssh文件中看到了连接,所以我不确定是什么问题。有任何想法吗?这是在扼杀我的生产力,因为我更倾向于跟踪git所有内容。

######### from C-x C-f ssh:user@host...etc (which has always worked in the past) #######
ssh: Could not resolve hostname ssh: Name or service not known

########## from *Messages buffer* #####################
Tramp: Opening connection for ssh using scp...
Tramp: Sending command `exec ssh   -e none ssh'

Tramp: Waiting for prompts from remote shell
Tramp: Sending command `exec ssh   -e none ssh'
Tramp: Opening connection for ssh using scp...done
byte-code: Process died

旁注:我确实开始遇到检测到系统程序问题的弹出窗口但是/ var / crash文件夹中的唯一问题是虚拟框问题所以我无法想象可能是它。 (我可以清除emacs并再次获取配置并以这种方式解决吗?)

1 个答案:

答案 0 :(得分:0)

错误消息清楚地表明您正在执行C-x C-f /ssh:user@host/path/to/filehost后缺少冒号。请像C-x C-f /ssh:user@host:/path/to/file一样打开它。