i can't use x11 forwarding in xshell5 [3]

i can't use x11 forwarding in xshell5 [3]

i can't use x11 forwarding in xshell5

Wednesday, September 16, 2015 6:13 AM - maple

Hi,

Recently I switched from xshell4 to xshell5, everything is ok but x11 forwarding, when I tried to start x-application from ssh session which already enabled x11 forwarding, there are always something wrong like:

1) [root@pcd40 ~]# virt-manager
Unable to initialize GTK: could not open display
2) [root@pcd40 ~]# firefox
Error: cannot open display: localhost:10.0

But once i switch back to xshell4, everything about x11 forwarding works again. why it happend? is there some configuration i didn't enable? or Xshell5 disabled x11 forwarding in some level?

thanks for support.

best regards.

Program Ver. : Xshell 5


Re: i can't use x11 forwarding in xshell5

Wednesday, September 16, 2015 1:05 PM - maple

Hi,

I have found the problem, because I use the scocks proxy for my ssh connection, and the socks proxy settings is localhost:1080.

In xshell 4, localhost will be resolved as 127.0.0.1 like below:
Looking up proxy server 'localhost'...
Host 'localhost' resolved to 127.0.0.1.

But in xshell 5, localhost is resolved to be ::1 like below:
Looking up proxy server 'localhost'...
Host 'localhost' resolved to ::1.

this is reason that i can't use x11 forwarding in my ssh session, once i change my proxy settings to be 127.0.0.1:1080, then problem is solved, but i still don't know the root cause.

do you have any clue? why xshell5 do this change? is this expected? by the way, my system is win7, is it related?

best regards.


Re: i can't use x11 forwarding in xshell5

Thursday, September 17, 2015 5:31 AM - Support

This is not a bug. Xshell 6 supports IPv6 and this is what is causing it. When you do 'ping localhost' in cmd window, you will see that localhost is mapped to ::1. To avoid this problem, you will have to use specify IPv4 address like you did.



Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog


Re: i can't use x11 forwarding in xshell5

Friday, September 18, 2015 3:30 AM - maple

thanks


Previous views: 360