You are not logged in.

#1 2007-12-07 23:12:58

slackhack
Member
Registered: 2004-06-30
Posts: 738

can't forward X over ssh anymore

I'm not really getting any error messages, it only says "can't open display" when I try to lauch an app. Everything seems okay using -vv to get info:

debug1: Requesting X11 forwarding with authentication spoofing.

then it just logs in without any error.

I moved the ~/.Xauthority on the client machine, and then got this error - i wonder if has something to do with the .Xauthority?

Warning: No xauth data; using fake authentication data for X11 forwarding.

I can ssh into a fedora box and launch apps, but not arch. Anyone have a suggestion of where I can start looking? Xorg.log is also giving absolutely nothing.

Offline

#2 2007-12-08 09:21:11

signor_rossi
Member
Registered: 2007-08-24
Posts: 257

Re: can't forward X over ssh anymore

Are you sure you have enabled anything necessary in the ssh server config file ( /etc/ssh/sshd_config)?

Bye, signor_rossi.

Offline

#3 2007-12-08 21:29:23

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: can't forward X over ssh anymore

yes of course. it was working fine, and now no longer is. i'm looking around, but there's not much to go on so far.


>> edit: turns out you were right, signor_rossi. apparently the new xorg requires an additional option to be set in the sshd_config, X11UseLocalhost yes (see below).

Last edited by slackhack (2007-12-10 14:01:44)

Offline

#4 2007-12-09 18:35:16

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: can't forward X over ssh anymore

I was just trying to set this up today and am getting the same error.

Offline

#5 2007-12-10 02:48:53

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: can't forward X over ssh anymore

I think I got it. Add this line (or uncomment) to /etc/ssh/sshd_config, and restart the daemon:

X11UseLocalhost yes

Offline

#6 2007-12-10 03:17:36

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: can't forward X over ssh anymore

slackhack wrote:

I think I got it. Add this line (or uncomment) to /etc/ssh/sshd_config, and restart the daemon:

X11UseLocalhost yes

Didn't work for me; are you connecting to another box, or are you on the same computer?

Offline

#7 2007-12-10 03:26:56

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: can't forward X over ssh anymore

sinister99 wrote:
slackhack wrote:

I think I got it. Add this line (or uncomment) to /etc/ssh/sshd_config, and restart the daemon:

X11UseLocalhost yes

Didn't work for me; are you connecting to another box, or are you on the same computer?

i'm on my laptop, connecting to my desktop. uncomment the line on the server box and restart the daemon, if that's not what you did.

also do echo $DISPLAY on the client (i think it should be something like :0.0), and on the server when you log in with X forwarded (should be a higher number, like :10.0).

also, make sure to run ssh with -vv flags to see if you get any error messages.

Offline

#8 2007-12-11 00:56:15

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: can't forward X over ssh anymore

I think I'm doing something wrong.

When I do echo $DISPLAY, I just get a blank line (I get :0.0 in my regular session)

It looks like everything is fine with the debug output.

I am using

X :12.0 vt12 2>&1 >/dev/null &
xterm -display :12.0 -e ssh -vv -X user@ip &

I gleaned this off a website, so I don't even know that I'm doing it right.

Any suggestions?

Offline

#9 2007-12-11 01:07:16

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: can't forward X over ssh anymore

trying simplifying the command, and using Y instead of X:

ssh -Yvv user@ip

Offline

#10 2007-12-11 01:13:49

sinister99
Member
Registered: 2007-04-10
Posts: 136

Re: can't forward X over ssh anymore

slackhack wrote:

trying simplifying the command, and using Y instead of X:

ssh -Yvv user@ip

No luck, I've messed around with X and Y already.

Offline

#11 2008-02-27 23:14:02

farhat
Member
From: Cali, Colombia
Registered: 2007-10-19
Posts: 7

Re: can't forward X over ssh anymore

I have these lines in /etc/ssh/ssh_config in the client's machine:

ForwardX11 yes
ForwardX11Trusted yes

and

X11Forwarding yes
X11UseLocalhost yes

in the server

Last edited by farhat (2008-02-27 23:18:18)

Offline

Board footer

Powered by FluxBB