Gentoo Forums
Gentoo Forums
Quick Search: in
ssh X11 forwarding - not working on some servers [SOLVED]
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
drazse
n00b
n00b


Joined: 30 Aug 2005
Posts: 4
Location: Poughkeepsie, NY

PostPosted: Mon Aug 11, 2008 3:44 pm    Post subject: ssh X11 forwarding - not working on some servers [SOLVED] Reply with quote

Help me please, I have X11 forwarding working to some remote servers, but on others starting any X application fails with the following error message:

Code:
drazse@remote $ xclock
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 57065
debug2: fd 7 setting O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug2: X11 connection uses different authentication protocol.
X11 connection rejected because of wrong authentication.
debug2: X11 rejected 1 i0/o0
debug2: channel 1: read failed


I tried a search for the problem on the net and on this forum, but none of the tips applied or helped.

The local machine is running gentoo, the remote servers I tried are RHEL WS4, and AIX5.3, some of them are working, some not, regardless of the OS.

Here is the relevant section of the log when I start the non-working ssh session:

Code:
drazse@local $ ssh -Y -vvv remote
...
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: x11_get_proto: /usr/bin/xauth  list :0.0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 0
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 0
...


Code:
drazse@remote $ echo $DISPLAY
localhost:11.0
drazse@remote $ ls -l .Xauthority
-rw-------  1 drazse users 0 Aug 11 15:40 .Xauthority


For comparison, when I start with a freshly created 0 size .Xauthority file on another remote server (where X11 forwarding works) I get the following:

Code:
drazse@remote_good $ echo $DISPLAY
localhost:51.0
drazse@remote_good $ ls -l .Xauthority
-rw-------   1 drazse   staff            65 Aug 11 16:08 .Xauthority
drazse@remote_good $ xauth list
remote_good/unix:51  MIT-MAGIC-COOKIE-1  xxxxxxxxxxxxx


From this, I suspect the problem is related to updating .Xauthority file, but previously when I had a similar problem related to missing write access I got a "Timeout locking authority file" error, which I don't get in this case. On both servers my HOME directory is on AFS, but I am getting the necessary tokens and access privileges on logon (otherwise I would get the previously mentioned "Timeout locking ..." error message).

I do not have access to the sshd_config files on any of the remote servers, but from an Ubuntu install I was able to forward X11 successfully to all of the servers, including those that did not work when I tried the same from my gentoo box.

Any ideas would be greatly appreciated.

EDIT - Deleting the ~/.ssh/rc file on the remote machine solved the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum