I login into the remote computer as:
The login is successful and I can see the following message:ssh -Y -vvv -l <remote user> <remote host>
However, when I try to execute xclock on the remote machine, I get:debug1: Entering interactive session.
debug2: callback start
debug2: x11_get_proto: /usr/bin/xauth -f /tmp/ssh-ONrDZb6334/xauthfile generate :0.0 MIT-MAGIC-COOKIE-1 untrusted timeout 1200 2>/dev/null
debug2: x11_get_proto: /usr/bin/xauth -f /tmp/ssh-ONrDZb6334/xauthfile 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
debug3: tty_make_modes: ospeed 38400
I can see that no xauthfile file has been created on the remote machine:debug2: tcpwinsz: 87380 for connection: 3
debug1: client_input_channel_open: ctype x11 rchan 2 win 87380 max 16384
debug1: client_request_x11: request from 127.0.0.1 53369
debug2: fd 7 setting O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug2: tcpwinsz: 87380 for connection: 3
debug2: tcpwinsz: 87380 for connection: 3
debug2: tcpwinsz: 87380 for connection: 3
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
debug2: channel 1: close_read
debug2: channel 1: input open -> drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug2: channel 1: input drain -> closed
debug2: channel 1: write failed
debug2: channel 1: close_write
debug2: channel 1: output open -> closed
debug2: X11 closed 1 i3/o3
debug2: channel 1: send close
debug2: tcpwinsz: 87380 for connection: 3
debug2: channel 1: rcvd close
debug2: tcpwinsz: 87380 for connection: 3
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: x11, nchannels 2
debug3: channel 1: status: The following connections are open:
#0 client-session (t4 r0 i0/0 o0/0 fd 4/5 cfd -1)
#1 x11 (t7 r2 i3/0 o3/0 fd 7/7 cfd -1)
debug3: channel 1: close_fds r 7 w 7 e -1 c -1
debug2: tcpwinsz: 87380 for connection: 3
And when I try to create xauthfile nmanually, I get an error:# ls -l /tmp/ssh-ONrDZb6334
ls: cannot access /tmp/ssh-ONrDZb6334: No such file or directory
or# mkdir /tmp/ssh-ONrDZb6334
# /usr/bin/xauth -f /tmp/ssh-ONrDZb6334/xauthfile generate :0.0 MIT-MAGIC-COOKIE-1 untrusted timeout 1200
/usr/bin/xauth: creating new authority file /tmp/ssh-ONrDZb6334/xauthfile
/usr/bin/xauth: (argv):1: unable to open display ":0.0".
I have X11Forwarding yes set in /etc/ssh/sshd_config and don't see anything relevant in the log files.# echo $DISPLAY
localhost:11.0
# /usr/bin/xauth -f /tmp/ssh-ONrDZb6334/xauthfile generate :11.0 MIT-MAGIC-COOKIE-1 untrusted timeout 1200
/usr/bin/xauth: creating new authority file /tmp/ssh-ONrDZb6334/xauthfile
/usr/bin/xauth: (argv):1: unable to open display ":11.0".
Any ideas???





