无法打开显示 - X11 转发 - Cent OS

jac*_*des 16 centos x11 x11forwarding

尝试X11通过 SSH Putty/Xming(在选项上启用 X11 转发)访问我的 CentOS 6 x32 小型 Linode VPS。

我的 Windows 机器不是问题,因为它可以与其他 CentOS 服务器一起使用。

X11Forwarding 在 上启用/etc/ssh/sshd_config,但我仍然无法获得 X11 转发。

我正在努力xclock工作,但Can't open display :0.0出现错误。

我也尝试过使用不同的 $DISPLAY 值,例如:0:10.0

我试过 MobaXterm,连接时收到此消息:

X11 forwarding request failed on channel 0
Run Code Online (Sandbox Code Playgroud)

Red*_*Tux 27

此处(需要红帽登录)是来自红帽顾问同行的一篇技术简介文章,该文章讨论了 X-Windows 用于 SSH 连接所需的最少软件包。

关键点是:

1) Install the following:
xorg-x11-xauth
xorg-x11-fonts-*
xorg-x11-utils
2) Enable the following in the sshd_config file
X11Forwarding yes
3) Use an appropriate X-Server on your desktop
Run Code Online (Sandbox Code Playgroud)


jac*_*des 8

安装了这个包: xorg-x11-xauth

这里得到解决方案。

谢谢你的帮助!

  • 错误报告很有帮助!我的解决方案是将 _sshd_config_ 更改为读取 `AddressFamily inet`,因为我已经通过 sysctl 停用了 ipv6 ... (6认同)