问题描述
当我执行"ssh -X abcserver
"时,收到消息"X11 forwarding request failed on channel 0
".我在网上检查过,并建议通过将"X11UseLocalhost no
"切换为"X11UseLocalhost yes
"来解决.
When I do "ssh -X abcserver
", I got message "X11 forwarding request failed on channel 0
".I checked online and it was suggested to solve it by switching "X11UseLocalhost no
" to "X11UseLocalhost yes
".
但是,我和我的经理都没有此管理权限.我想知道,除此解决方案外,是否还有其他解决方案?我也没有sudo
权限直接在服务器上安装X11
.
However, both my manager and I don't have this administrative privilege. I am wondering, except this solution, whether there is another option to solve the issue ? I also don't have sudo
privilege to directly install X11
on the server.
我的本地平台是:
Linux version 3.16.0-4-amd64 ([email protected])
(gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02)
远程平台是:
Linux version 3.13.0-88-generic (buildd@lgw01-16)
(gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) )
#135-Ubuntu SMP Wed Jun 8 21:10:42 UTC 2016
推荐答案
在尝试登录时在ssh中添加-v
选项将提供许多调试信息,这些信息可能可以提供确切问题的线索,例如例如
Adding the -v
option to ssh when trying to log in will give a lot of debug information which might give a clue to exactly what the problem is, like for instance
debug1: Remote: No xauth program; cannot forward with spoofing.
在我的情况下,该服务器在服务器上安装了xauth,从而解决了该问题.
which in my case installing xauth on the server fixed the issue.
这篇关于X11转发请求在通道0上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!