启用 PuTTY 用户进行 X11 转发(Redhat 5 服务器)

启用 PuTTY 用户进行 X11 转发(Redhat 5 服务器)

我想为我的服务器启用图形转发。我通过 PuTTY 连接并单击 X11 转发,该转发可与其他服务器配合使用。到目前为止,本网站上的其他主题都对我没用,但我试着四处寻找。有人能帮忙吗?谢谢。

[lkatz@localhost ~]$ echo $DISPLAY
localhost:10.0

在有问题的 Redhat 服务器上,我编辑了 /etc/ssh/sshd_config 以包含以下行(根据另一个站点的说明):

AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

但是,当我在 Windows 上通过 PuTTY 尝试图形程序时,收到以下错误消息:

[lkatz@localhost ~]$ gedit
The application 'gedit' lost its connection to the display localhost:10.0;
most likely the X server was shut down or you killed/destroyed
the application.
[lkatz@localhost ~]$ Mauve
X connection to localhost:10.0 broken (explicit kill or server shutdown).
[lkatz@localhost ~]$ gnome-terminal
The application 'gnome-terminal' lost its connection to the display localhost:10.0;
most likely the X server was shut down or you killed/destroyed
the application.

答案1

  • 确保您已xorg-x11-xauth已安装。

  • 检查 SSH 日志(PuTTY:Ctrl+右键单击,选择“事件日志”)。

答案2

不要忘记启动你的 Windows X 服务器。

我正在使用 XMing,它在运行 Debian 6.0 的计算机上运行良好。

顺便说一句,您的配置似乎没问题。

相关内容