[opensuse] ssh -X -C and virtualbox
Hello, I use ssh -X -C to use gui enabled applications (say xeyes to test). This works perfectly on my hosted server (remote). But on the same server I have a virtual server I connect to through port 32022 (ssh -X -C -p 32022) and there if I try xeyes, I get "display not found" any hints? GUI are often much more friendly than xterm same 12.3 on the two machines (host and guest) Thanks -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 09/09/2013 09:59, jdd a écrit :
Hello,
I use ssh -X -C to use gui enabled applications (say xeyes to test). This works perfectly on my hosted server (remote).
But on the same server I have a virtual server I connect to through port 32022 (ssh -X -C -p 32022) and there if I try xeyes, I get "display not found"
Well. My host was at first configured by my ISP to allow X11forwarding, and the guest was not. Then most internet pages do not know that a some time a new option become necessary. now one have to add both: X11Forwarding yes X11UseLocalhost no in /etc/ssh/sshd_config to make the forwarding works. done all works now thanks jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 9/9/2013 2:17 AM, jdd wrote:
Le 09/09/2013 09:59, jdd a �crit :
Hello,
I use ssh -X -C to use gui enabled applications (say xeyes to test). This works perfectly on my hosted server (remote).
But on the same server I have a virtual server I connect to through port 32022 (ssh -X -C -p 32022) and there if I try xeyes, I get "display not found"
Well. My host was at first configured by my ISP to allow X11forwarding, and the guest was not.
Then most internet pages do not know that a some time a new option become necessary. now one have to add both:
X11Forwarding yes X11UseLocalhost no
in /etc/ssh/sshd_config
to make the forwarding works.
done all works now
You should not need to, and possibly do not want to set X11UseLocalhost no. That tells it to let X sessions use ALL/any interfaces. This works because it works around another problem, but in doing so it opens a security hole. With X11UseLocalhost yes, X sessions can only bind to localhost. Since you ssh into that machine, your X session need only bind to the localhost:10 display (for the first ssh session, 11 for the next, etc). That display (10) is routed back to where every you are sitting via the encrypted ssh tunnel. So X11 only ever has to bind to localhost addresses. The root of this problem is gimpy or missing setting for AddressFamily xxxx Often its set to "any" which causes it to try IPV6 and then IPV4. But the problem is the fail-over from 6 back to 4, when there is some segment where ipv6 is not available, can take so long that it acts as if the session failed and it times out. Setting AddressFamily inet tells it to run on ipv4 and that works and will continue to work even when you have ipv6 to everywhere. This is how I have ALL my remote servers set and it works perfectly. -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 09/09/2013 20:18, John Andersen a écrit :
Setting AddressFamily inet tells it to run on ipv4 and that works and will continue to work even when you have ipv6 to everywhere.
again an IPV6 trouble :-( I often disable IPV6 (recently prevented my firefox to read opensuse web), but your solution is way better... thanks a lot! jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
jdd
-
John Andersen