Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSH session hang on starting GUI program with X11 forwarding
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lowsfer
n00b
n00b


Joined: 06 Nov 2009
Posts: 42

PostPosted: Tue May 17, 2011 1:46 am    Post subject: SSH session hang on starting GUI program with X11 forwarding Reply with quote

Hi guys,

I'm experiencing a problem with starting GUI program via ssh with x11 forwarding. Every time the ssh session just hang. Then I have to "killall ssh" to end the SSH session. Tried both "-X" and "-Y", none worked.

I tried debug mode of ssh "ssh -Xvvv username@host"
when I start xterm, I got the following debug info:
Code:

debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from ::1 57420
debug2: fd 7 setting O_NONBLOCK
debug3: fd 7 is O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11

Other relevant info:
Code:

>echo $DISPLAY
localhost:14.0

All non-comment content of /etc/ssh/ssh_config on my local machine (ssh client / X11 server)
Code:

Host *
    XAuthLocation /usr/bin/xauth
    ForwardX11 yes
    ForwardX11Trusted yes


I believe the settings on the ssh server/X11 client machine are OK because I can use X11 forwarding on another windows machine with putty+Xming perfectly.

Does anyone know what is the problem? Thanks.
Back to top
View user's profile Send private message
lowsfer
n00b
n00b


Joined: 06 Nov 2009
Posts: 42

PostPosted: Mon Jul 25, 2011 6:22 am    Post subject: Reply with quote

Solved the problem finally!

It's the problem with vpn. I was using ssh over vpn. And it's a classic MTU problem. To solve it, excute
Code:

ifconfig tun0 mtu 1350

after making vpn connection.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
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