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:
login to your server (as root or some type of super user):
ssh root@dev2server.somedomain.com
install xauth
yum install xauth
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
logout and login again as your desired user ssh dev2user@dev2server.somedomain.com
xclock