Results 1 to 1 of 1
-
4th Apr 2014, 01:39 PM #1
X11 forwarding request failed on channel 0 Error and Solution
ssh -X -o options -A -p 22 user@centos-far-away-server
But, I am getting the following error on screen:
X11 forwarding request failed on channel 0
Last login: Sun Mar 23 15:58:51 2014 from 1.2.3.4
Tutorial details Difficulty Intermediate (rss) Root privileges Yes Requirements None Estimated completion time 5m
You may get an error when you try to display a server managment app or any other X app. You will be able to run a graphical application on server and get applications display (window) on your desktop using X11 forwarding. The fix this issue make sure OpenSSH SSHD is configured as followsFixing forwarding request failed on channel 0 on a Linux/Unix based server
Login to your centos-far-away-server, enter:
$ ssh -A -p 22 user@centos-far-away-server
$ sudo vi /etc/ssh/sshd_config
X11Forwarding yes
X11UseLocalhost no
$ sudo /etc/init.d/sshd reload
Reloading sshd: [ OK ]
You need to install xauth tool using yum command:
$ sudo yum install xauth
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.tummy.com
* epel: mirror.steadfast.net
* extras: centos-mirror.jchost.net
* updates: centos.hostingxtreme.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-xauth.x86_64 1:1.0.2-7.1.el6 will be installed
--> Processing Dependency: libXmuu.so.1()(64bit) for package: 1:xorg-x11-xauth-1.0.2-7.1.el6.x86_64
--> Running transaction check
---> Package libXmu.x86_64 0:1.1.1-2.el6 will be installed
--> Processing Dependency: libXt.so.6()(64bit) for package: libXmu-1.1.1-2.el6.x86_64
--> Running transaction check
---> Package libXt.x86_64 0:1.1.3-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=================================================== ================================================== ======
Package Arch Version Repository Size
=================================================== ================================================== ======
Installing:
xorg-x11-xauth x86_64 1:1.0.2-7.1.el6 base 35 k
Installing for dependencies:
libXmu x86_64 1.1.1-2.el6 base 66 k
libXt x86_64 1.1.3-1.el6 base 184 k
Transaction Summary
=================================================== ================================================== ======
Install 3 Package(s)
Total download size: 285 k
Installed size: 681 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): libXmu-1.1.1-2.el6.x86_64.rpm | 66 kB 00:00
(2/3): libXt-1.1.3-1.el6.x86_64.rpm | 184 kB 00:00
(3/3): xorg-x11-xauth-1.0.2-7.1.el6.x86_64.rpm | 35 kB 00:00
-----------------------------------------------------------------------------------------------------------
Total 1.2 MB/s | 285 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libXt-1.1.3-1.el6.x86_64 1/3
Installing : libXmu-1.1.1-2.el6.x86_64 2/3
Installing : 1:xorg-x11-xauth-1.0.2-7.1.el6.x86_64 3/3
Verifying : libXmu-1.1.1-2.el6.x86_64 1/3
Verifying : libXt-1.1.3-1.el6.x86_64 2/3
Verifying : 1:xorg-x11-xauth-1.0.2-7.1.el6.x86_64 3/3
Installed:
xorg-x11-xauth.x86_64 1:1.0.2-7.1.el6
Dependency Installed:
libXmu.x86_64 0:1.1.1-2.el6 libXt.x86_64 0:1.1.3-1.el6
Complete!
$ ssh -X -o options -A -p 22 user@centos-far-away-server
Last login: Sun Mar 23 16:25:09 2014 from 1.2.3.4
/usr/bin/xauth: creating new authority file /home/vivek/.Xauthority
$ xeyes &
$ my-cool-raid-app-manager &
If you still need hints, run ssh command as follows to debug problems:
$ ssh -v user@server-name-hereGarryField Reviewed by GarryField on . X11 forwarding request failed on channel 0 Error and Solution ssh -X -o options -A -p 22 user@centos-far-away-server But, I am getting the following error on screen: How do I fix "X11 forwarding request failed on channel 0" on Linux or Unix-like systems? Tutorial details Rating: 5Follow Board Rules & Thread Rules.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Fix: /bin/dbus-launch terminated abnormally without any error message and solution
By GarryField in forum Server ManagementReplies: 0Last Post: 4th Apr 2014, 01:32 PM -
rsync writefd_unbuffered failed to write error
By acoza in forum Technical Help Desk SupportReplies: 4Last Post: 28th Jun 2012, 09:38 PM -
Image has failed to upload due to an error Missing a temporary folder.
By Froomple in forum WordpressReplies: 20Last Post: 6th Jun 2012, 03:41 PM -
Plz Give Solution for this Error
By Mr.WT in forum vBulletinReplies: 11Last Post: 3rd May 2011, 02:05 PM -
[Request] Pre-Channel/Top Site Access?
By amansharmaa in forum Webmaster DiscussionReplies: 1Last Post: 11th Dec 2010, 09:30 AM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...