Re: [opensuse] ssh X forwarding - what's missing?
On 2011. 01. 21., Friday 01:21:02 you wrote:
On 01/20/2011 08:52 AM, benefici@fastmail.fm wrote:
Hi, I have just installed openSUSE 11.3 on a PC, basically did a minimal X install. However, when I ssh to this box with ssh -X <host>, I cannot run X applications, e.g. xterm. I get: xterm Xt error: Can't open display: xterm: DISPLAY is not set
The problem is probably on the remote PC because I can use X forwarding from the same client to other remote hosts. Maybe a required package is missing? Any ideas?
Thanks, Tom
Tom,
Just a couple of things to check:
On the SERVER
Enable the AllowTcpForwarding option in sshd_config on the server. Enable the X11Forwarding option in sshd_config on the server. Set the X11DisplayOffset option in sshd_config on the server to 10. Enable the X11UseLocalhost option in sshd_config on the server.
On the CLIENT
Enable the ForwardX11 option in ssh_config on the client.
Thanks for the suggestions. Actually, I could get X forwarding to work along these lines, but with a different combination: AllowTcpForwarding: didn't matter whether I enabled it or not / commented out or not. X11Forwarding: was set to "yes" already X11DisplayOffset: didn't change anything X11UseLocalhost: was commented out (and set to "yes"), I had to uncomment it and change its value to "no" and then X forwarding started to work! So I'm going to look up X11UseLocalhost and see what it does. Cheers, Tom -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Freitag, 21. Januar 2011, 10:24:40 schrieb benefici@fastmail.fm:
Thanks for the suggestions. Actually, I could get X forwarding to work along these lines, but with a different combination:
AllowTcpForwarding: didn't matter whether I enabled it or not / commented out or not. X11Forwarding: was set to "yes" already X11DisplayOffset: didn't change anything X11UseLocalhost: was commented out (and set to "yes"), I had to uncomment it and change its value to "no" and then X forwarding started to work!
So I'm going to look up X11UseLocalhost and see what it does.
Cheers, Tom
Hi, I had the same problem. If I disable IPv6 on my server, it works. A permanent solution is not. I do not know why it works then. Greetings Jan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jan Krings wrote:
I had the same problem. If I disable IPv6 on my server, it works. A permanent solution is not. I do not know why it works then. I run IPv6 on my network and X forwarding works fine. I never had to disable IPv6 on anything, even before I started using it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2011. 01. 21., Friday 14:35:02 James Knott wrote:
Jan Krings wrote:
I had the same problem. If I disable IPv6 on my server, it works. A permanent solution is not. I do not know why it works then.
I run IPv6 on my network and X forwarding works fine. I never had to disable IPv6 on anything, even before I started using it.
And I don't use IPv6 so had IPv6 disabled _before_ trying X forwarding and it did not work. Probably it's something else in your case, too. Maybe something that you changed at the same time. Tom -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
benefici@fastmail.fm
-
James Knott
-
Jan Krings