xming debian 无法打开显示

cik*_*omo 5 xorg x11 xming

我遵循了许多设置指南,甚至更多“无法打开显示”错误解决方案,但仍然找不到问题所在。首先,在 VPS Debian Squeeze 上我安装了 xserver-xorg-core 和 xauth。

然后在 Windows 7 上安装 xming 6.9.0.31。然后配置putty 2012-11-09:r9690 这是putty config:

腻子配置

VPS 上的 sshd_config 设置为:

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
Run Code Online (Sandbox Code Playgroud)

Xauthority 文件是在~/.Xauthority. $DISPLAYlocalhost:10.0

我先启动xming,然后用putty连接。

当我输入时,xlogo我得到Error: Can't open display: localhost:10.0.

我将 VPS 的 IP 放在 xming 文件夹中的 x0.hosts 中。试图将 DISPLAY 更改为我的 IP, :0, localhost:0 ... 我什至不记得这些组合。试图将 localhost:0 放入腻子配置中。/etc/hosts正如我在一个答案中看到的那样,我什至更改了行的顺序,但没有任何效果。

更新: 这是腻子事件日志:

2013-03-03 15:58:14 Looking up host "IP"
2013-03-03 15:58:14 Connecting to IP port 22
2013-03-03 15:58:14 Server version: SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze2
2013-03-03 15:58:14 Using SSH protocol version 2
2013-03-03 15:58:14 We claim version: SSH-2.0-PuTTY_Snapshot_2012_11_09:r9690
2013-03-03 15:58:14 Doing Diffie-Hellman group exchange
2013-03-03 15:58:14 Doing Diffie-Hellman key exchange with hash SHA-256
2013-03-03 15:58:15 Host key fingerprint is:
2013-03-03 15:58:15 ssh-rsa 2048 3f:6e:7d:6c:14:6a:3e:18:0d:d4:05:c9:b2:60:d3:00
2013-03-03 15:58:15 Initialised AES-256 SDCTR client->server encryption
2013-03-03 15:58:15 Initialised HMAC-SHA1 client->server MAC algorithm
2013-03-03 15:58:15 Initialised AES-256 SDCTR server->client encryption
2013-03-03 15:58:15 Initialised HMAC-SHA1 server->client MAC algorithm
2013-03-03 15:58:19 Sent password
2013-03-03 15:58:19 Access granted
2013-03-03 15:58:19 Opening session as main channel
2013-03-03 15:58:19 Opened main channel
2013-03-03 15:58:19 Requesting X11 forwarding
2013-03-03 15:58:20 X11 forwarding enabled
2013-03-03 15:58:20 Allocated pty (ospeed 38400bps, ispeed 38400bps)
2013-03-03 15:58:20 Started a shell/command
Run Code Online (Sandbox Code Playgroud)

我在哪里可以检查其他地方?有什么解决办法吗?

jip*_*pie 2

检查 Windows 防火墙是否阻止 localhost:6010 上的 TCP。

在使用 PuTTY 设置 SSH 会话后,尝试执行以下小步骤来检查是否可以连接到远程 X 服务器 (Xming)。请注意端口与您60xxxx以下位置找到的号码相同echo $DISPLAY

$ echo $DISPLAY 
localhost:10.0
$ netstat -an | grep 6010
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN     
tcp6       0      0 ::1:6010                :::*                    LISTEN     
$ telnet 127.0.0.1:6010
telnet: could not resolve 127.0.0.1:6010/telnet: Name or service not known
$ telnet 127.0.0.1 6010
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
Run Code Online (Sandbox Code Playgroud)

当无法访问 X 服务器时,会发生以下情况:

$ telnet 127.0.0.1 6011
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
Run Code Online (Sandbox Code Playgroud)