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客户端就可以在本地机器上编辑文件。但似乎不是这样的.
发布于 2011-10-02 23:38:02
在远程转发中使用emacsclient有点棘手(而且在某些时候可能已经修复/更改了行为)。
您可以做的一件事就是正常地将ssh发送到服务器,并将当前的ssh显示显式地传递给emacs:
emacsclient -c -d $DISPLAY我还在emacsclient wiki上找到了这个
ssh remote_host -f emacsclient --eval ‘”(make-frame-on-display \”$DISPLAY\”)”’更新:
由于emacs似乎不喜欢":0“显示,请尝试显式地将其写出来:
emacsclient -c -d localhost:0https://stackoverflow.com/questions/7626841
复制相似问题