Search This Blog

Redhat/CentOS: X11 forwarding request failed on channel 0

Was trying to forward xdisplay back to local computer from the remote a Redhat 6.5 server via SSH,
ssh -X user@remote-redhat-server
xterm
got the following error:
X11 forwarding request failed on channel 0

Solution:

  • Login the remote Redhat server via ssh:
    ssh user@remote-redhat-server
  • Enable X11 forwarding in /etc/ssh/sshd_config:
    sudo vi /etc/ssh/sshd_config
    X11Forwarding yes
    X11UseLocalhost no
  • Install xauthroity:
    sudo yum install xauth
  • Important: Reload ssh server:
    sudo /etc/init.d/ssh reload

No comments:

Post a Comment