Can't Open Display - X11 Forwarding - Cent OS

112,044

Solution 1

Here (Red Hat Login required) is a Tech Brief article from a fellow Red Hat consultant which discusses the minimum packages needed for X-Windows to work for SSH connections.

The key points are:

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

Solution 2

Installed this package: xorg-x11-xauth

Got solution from here.

Thanks for your help!

Share:
112,044

Related videos on Youtube

jacktrades
Author by

jacktrades

Updated on September 18, 2022

Comments

  • jacktrades
    jacktrades over 1 year

    Trying to access X11 my CentOS 6 x32 small Linode VPS through SSH Putty/Xming (enabled X11 forwarding on options).

    My windows machine is not the problem since it works with others CentOS Servers.

    X11Forwarding is enabled on /etc/ssh/sshd_config, still I can't get X11 forwarding.

    I'm trying to get xclock to work, but I get Can't open display :0.0 error.

    I've also tried with different $DISPLAY values like :0 or :10.0

    I've tried MobaXterm, and I get this message when connecting:

    X11 forwarding request failed on channel 0
    
    • Michael Hampton
      Michael Hampton over 11 years
      What X server did you install on your Windows machine?
    • Zoredache
      Zoredache over 11 years
      Not sure what the CentOS equivalent is, but have you install the xbase-clients? This should include xauth, and a few other required libraries?
    • jacktrades
      jacktrades over 11 years
      I did yum install xclock, installed lot of dependencies.
  • Julien
    Julien over 10 years
    The bug report was helpfull ! The solution for me was to change the sshd_config to read AddressFamily inet as I had deactivated ipv6 via sysctl...
  • zzy
    zzy over 8 years
    You save me days!!!