我读过类似的问题,并已申请的建议发布,但似乎没有解决我的问题...X11转发无法打开显示器(客户端拒绝?)
腻子,我已经启用X11转发,用 'X显示位置' 设定为0.0
远程的Debian 8.4的X -version是1.16.4,与在/ etc/SSH/ssh_config中设置为:
ForwardX11 yes
ForwardX11 Trusted yes
和/ etc/ssh/sshd_config:
X11Forwarding yes
我也迫使DISPLAY变量指向我的本地计算机的IP:
export DISPLAY=192.168.1.140:0.0
并验证它的设置是否正确(使用“回声$ DISPLAY”)
最后,我重新启动:'服务ssh重启“和”服务sshd重启“。不幸的是,当我输入“xterm &”时,出现错误 “无法打开显示:%s”,本地运行的xming(Win8)从不显示任何内容。
的Xming的记录似乎表明了身份验证错误:
winClipboardProc - Hello
DetectUnicodeSupport - Windows Vista
winClipboardProc - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - XOpenDisplay() returned and successfully opened the display.
winInitMultiWindowWM - XOpenDisplay() returned and successfully opened the display.
winClipboardProc - XOpenDisplay() returned and successfully opened the display.
AUDIT: Mon Jul 04 09:40:48 2016: 2508 C:\Program Files (x86)\Xming\Xming.exe: client 4 rejected from IP 192.168.1.151
[Note: the 192.168.1.151 is the IP of the BBB (ifconfig -a)]
我也验证了窗口的防火墙没有阻止的Xming。
不知道这是否显著,但远程Debian是一个beaglebone黑色运行。
我本来不会导出DISPLAY可言,但是当它没有工作,我又试图将它设置到我的xming的知识产权。但是即使将其设置为localhost(export DISPLAY = localhost:10.0),我仍然在远程计算机上看到'Can not open display:%s'。有趣的是,尽管我在xming的日志中看不到被拒绝的消息。这是/ etc/hosts文件或〜/ .Xauthority的问题? – ben
这可能是转发不起作用(因此,连接尝试永远不会到达本地机器)./etc/host与无关这个,.Xauthority可能在Linux上,我经常使用'-Y'选项来进行X转发,这是可信的X11选项;尝试关闭ForwardX11Trusted指令 – JvO
作为另一个数据点,我尝试使用本地虚拟(linux)机器连接到远程,它工作(ssh -X [email protected])。我得到一个错误,说文件/ root /。Xauthority不存在,但我仍然能够ssh到它,执行xterm,gui出现了。也许这个缺少的文件导致Windows主机问题?顺便说一句,我在遥控器上唯一的帐户是“root”,即没有其他用户帐户。 – ben