On Fri, Sep 18, 2009 at 1:46 PM, p_a <[email protected]> wrote: > Would you believe that yesterday we restarted the server and now it > X11forwarding > does not operate again. > > My procedure is the following: > 1. > a) ssh -X lo...@somedomain -p xxx > b) export display=rem...@somedomain:0.0 > c) xhost + (on remote)
Are you trying to have X11 clients that run on the server display on your local machine? If so, try the following: $ user=foo $ remotehost=bar $ port=22 $ \ssh -X -p $port -vvv $u...@$remotehost 'xterm' 2> /tmp/ssh.log If everything works well, you should see the remote server prompting for your password and then an xterm. When you exit the xterm and then grep the log file, you should have entries about the xterm and X11 forwarding: $ grep -i -e x11 -e xterm tmp/ssh.log debug2: x11_get_proto: /usr/bin/X11/xauth list :0.0 2>/dev/null debug1: Requesting X11 forwarding with authentication spoofing. debug2: channel 0: request x11-req confirm 0 debug1: Sending command: xterm debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384 debug1: client_request_x11: request from 127.0.0.1 41940 debug1: channel 1: new [x11] debug1: confirm x11 #1 x11 (t4 r3 i3/0 o3/0 fd 7/7 cfd -1) debug1: channel 1: free: x11, nchannels 1 #1 x11 (t4 r3 i3/0 o3/0 fd 7/7 cfd -1) If you try the same command without the -X option to ssh, you'll see other entries in the log: $ \ssh -p $port -vvv $u...@$remotehost 'xterm' 2> /tmp/ssh.log $ grep -i -e x11 -e xterm tmp/ssh.log debug1: Sending command: xterm xterm Xt error: Can't open display: xterm: DISPLAY is not set I tested the above first on my local machine before trying to connect to the remote. So for me user=$USER remotehost=127.0.0.1 port=22 Once that worked, I repeated the process, changing remotehost= to my remote machine. Good luck and let us know what you discover. Regards, - Robert --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup -~----------~----~----~----~------~----~------~--~---
