You are not logged in.

#1 2010-07-06 18:06:27

xenobrain
Member
From: Houston, Texas
Registered: 2006-05-31
Posts: 91

[Solved] Remote X over ssh not working

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

#2 2010-07-06 19:10:19

benob
Member
Registered: 2008-11-11
Posts: 187

Re: [Solved] Remote X over ssh not working

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

#3 2010-07-06 19:10:55

Zeist
Arch Linux f@h Team Member
Registered: 2008-07-04
Posts: 532

Re: [Solved] Remote X over ssh not working

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

#4 2010-07-06 20:26:15

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,225
Website

Offline

#5 2010-07-06 20:45:02

xenobrain
Member
From: Houston, Texas
Registered: 2006-05-31
Posts: 91

Re: [Solved] Remote X over ssh not working

Got it.  X11UseLocalhost  was off.  I had X forwarding on, but not that one.  Thanks for the replies, they helped me spot this!

Offline

Board footer

Powered by FluxBB