emacsclient:无法获取终端名称
ssh -X root@localhost "emacsclient -c"
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
emacsclient: could not get terminal name
我已经用谷歌搜索但找不到解决方案。
更新: 我认为 emacs 客户端(在本地计算机上)连接到 emacs 服务器(在远程计算机上),以便 emacs 客户端可以编辑本地计算机上的文件。但它似乎不是这样工作的......
ssh -X root@localhost "emacsclient -c"
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
emacsclient: could not get terminal name
I have googled but i can't find the solution to solve it.
Update:
I thought that emacs client (on local machine) connect to emacs server (on remote machine) so that emacs client can edit file on local machine. But it doesn't seem to work that way...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 emacsclient 进行远程转发有点棘手(并且行为可能在某些时候已被修复/更改)。
你可以做的一件事就是正常 ssh 到服务器,并将当前的 ssh 显示显式传递给 emacs:
也在 emacsclient wiki:
更新:
由于 emacs 似乎不喜欢“:0”显示,请尝试明确地写出来:
using emacsclient with remote forwarding is a little tricky (and the behavior may have been fixed/changed at some point).
one thing you could do is just ssh to the server normally, and pass the current ssh display to emacs explicitly:
also found this on the emacsclient wiki:
UPDATE:
since emacs doesn't seem to like the ":0" display, try writing it out explicitly: