«

»

Print this Post

X11 forwarding request failed on channel 0

the dreaded X11 forwarding request failed on channel 0 so you’ve tried: ssh  dev2user@dev2server.somedomain.com and getting the following error on screen when trying to run something that requires x11 forwarding (like xclock or some type of installer perhaps?):

xclock X11 forwarding request failed on channel 0

try this:

  1. login to your server (as root or some type of super user):
    ssh root@dev2server.somedomain.com
  2. install xauth
    yum install xauth
  3. edit /etc/ssh/sshd_config file
    vi /etc/ssh/sshd_config

    set the following two options:

    X11Forwarding yes X11UseLocalhost no

    save and close the file

  4. logout and login again as your desired user ssh  dev2user@dev2server.somedomain.com
    xclock

About devnumbertwo

IT consultant, software developer, technical writer, nba basketball spectator, tea (and occasionally coffee) drinker, cheese enthusiast, dog lover, and a person who once spotted heather locklear at the mall. chiggity check me out on twitter and
X11 forwarding request failed on channel 0 was last modified: July 30th, 2015 by devnumbertwo

Permanent link to this article: http://devnumbertwo.com/x11-forwarding-request-failed-on-channel-0-error/