[英]emacs:open file through ssh failed
When trying to open a file through ssh in emacs, I got an error: 尝试通过emacs中的ssh打开文件时,出现错误:
Couldn't find a POSIX `id' commandQUESTION: What is the problem? 问题:有什么问题?
Does your remote system has proper id
command? 您的远程系统是否具有正确的id
命令? You can verify what TRAMP is trying to do if you set 如果您进行了设置,则可以验证TRAMP尝试执行的操作
(setq tramp-verbose 10)
Then try to connect and monitor buffers *tramp/...*
and *debug tramp/...*
. 然后尝试连接并监视缓冲区*tramp/...*
和*debug tramp/...*
。 If the remote path does not get set correctly by TRAMP, you can change it: 如果TRAMP未正确设置远程路径,则可以更改它:
(add-to-list 'tramp-remote-path "/path/to/id/command")
This just happened to me recently for the first time... after never having the issue before on the same cluster of servers. 这是我最近第一次发生这种情况……在同一服务器群集上从未遇到过此问题之后。 It ended up being that the server I was trying to connect to was out of disk space...and this error was just a side effect of that. 最终导致我尝试连接的服务器磁盘空间不足……而该错误只是其副作用。 So it's worth doing a df -h
if this issue seems to come out of nowhere. 因此,如果这个问题似乎无处不在,则值得进行df -h
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.