How to fix error X11 forwarding request failed on channel 0

How to fix error for X11 Forwarding on Oracle Linux 6.5
On connecting via ssh to Oracle Linux server (6.5) gave following error
X11 forwarding request failed on channel 0

Solution:   Add following two lines to sshd_config file  /etc/ssh/sshd_config
Forwarding yes X11
UseLocalhost no

Now after making above changes to the sshd_config file, restart the sshd service
Command to restart sshd service   service sshd restart
Make sure you have xauth available

SSH login works fine and
/usr/bin/xauth: creating new authority file /root/.Xauthority

Hope this helped you. I used below urls as reference when solving my issue.
Feel free to provide your comments and if there any other issues you faced.

https://www.centos.org/forums/viewtopic.php?t=17982
http://www.cyberciti.biz/faq/how-to-fix-x11-forwarding-request-failed-on-channel-0/X11

Comments

Post a Comment

Popular posts from this blog

VMware fix for Invalid manifest and ova file import failed errors

Session Timeout in Oracle Access Manager

SOAPUI - import certificate