You are not logged in.
Pages: 1
Hello, I'm trying to forward X11 over ssh but it's not working.
I type
ssh -X 192.168.1.101
followed by my password, and I log in just fine.
I try to launch an X11 application and I get
$kate
kate: cannot connect to X server
SSH is supposed to be forwarding a dummy $DISPLAY to allow remote X. So I type
$echo $DISPLAY
and and get back a empty newline.
Well how about
$xinit
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
Okay, I'll shut down xserver.
I do it, and type
$xinit
again. KDE launches on my remote box. It makes sense, but contradicts many guides I have read which say it should launch on my local machine.
What am I doing wrong here? This should be ridiculously simple.
Last edited by xenobrain (2010-07-06 20:45:16)
Offline
Did you enable X forwarding in your sshd config?
Did you xhost + (or ssh -Y)?
Did you crop your DISPLAY variable in a bashrc or similar script run at login?
Last edited by benob (2010-07-06 19:10:54)
Offline
How does your /etc/ssh/ssh_config look?
Is ForwardX11 set to yes in it?
I haven't lost my mind; I have a tape back-up somewhere.
Twitter
Offline
Have you read the following: http://wiki.archlinux.org/index.php/SSH#X11_Forwarding ?
Offline
Got it. X11UseLocalhost was off. I had X forwarding on, but not that one. Thanks for the replies, they helped me spot this!
Offline
Pages: 1