我有一个无头 Debian 主机和一个 Virtualbox 客户端。以前我能够将 Firefox 从 Debian 转发到本地盒子,但突然它停止工作了。
xterm 或 xeyes 仍然像以前一样工作,没有问题。
我正在尝试启动 Firefox:
ssh -v -X <hostname> firefox
结果如下:
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
debug1: channel 2: free: x11, nchannels 2
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 33734
debug1: channel 1: new [x11]
debug1: confirm x11
debug1: client_input_channel_open: ctype x11 rchan 4 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 33742
debug1: channel 2: new [x11]
debug1: confirm x11
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
debug1: channel 1: free: x11, nchannels 3
debug1: channel 2: free: x11, nchannels 2
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 33754
debug1: channel 1: new [x11]
debug1: confirm x11
Error: cannot open display: localhost:10.0
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0
debug1: channel 0: free: client-session, nchannels 2
X11 connection rejected because of wrong authentication.
debug1: channel 1: free: x11, nchannels 1
Transferred: sent 102100, received 18628 bytes, in 31.7 seconds
Bytes per second: sent 3224.1, received 588.2
debug1: Exit status 1
Chromium 给出以下输出:
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
X11 connection rejected because of wrong authentication.
[69559:69559:0920/114752.211400:ERROR:ozone_platform_x11.cc(240)] Missing X server or $DISPLAY
[69559:69559:0920/114752.211590:ERROR:env.cc(255)] The platform failed to initialize. Exiting.
有任何想法吗?