You are not logged in.

#1 2009-12-10 22:36:48

Godofgrunts
Member
Registered: 2008-11-14
Posts: 43

X11 forwarding over SSH

I followed the Arch Wiki on it, but I still can't get it to work. Here is my sshd_config

ListenAddress 0.0.0.0
Protocol 2
UsePAM yes
Banner Hi!
Subsystem       sftp       /usr/lib/ssh/sftp-server

X11Forwarding yes
AllowTcpForwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

When I go to use putty.exe I set my settings to
Enable X11 forwarding
X display location = localhost:0
And I'm using MIT-Magic-Cookie-1

Whenever I go to run xclock  or firefox I get

Error: Can't open display: localhost:10.0

I can not figure out what I'm screwing up.

Offline

#2 2009-12-10 22:44:26

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: X11 forwarding over SSH

Looks like the forwarding part is working, since DISPLAY is getting set to localhost:10.0 as it does in that case. Looks like a problem with X on the machine where you're running putty.

Offline

#3 2009-12-10 22:55:00

Godofgrunts
Member
Registered: 2008-11-14
Posts: 43

Re: X11 forwarding over SSH

Hmm, I'll test it from another machine and get back to you.

Offline

#4 2009-12-10 23:17:54

Godofgrunts
Member
Registered: 2008-11-14
Posts: 43

Re: X11 forwarding over SSH

Okay, had my friend try it from his house (I'm at work) still didn't get anything.

Offline

#5 2009-12-10 23:48:45

kjon
Member
From: Temuco, Chile
Registered: 2008-04-16
Posts: 398

Re: X11 forwarding over SSH

Godofgrunts wrote:

I followed the Arch Wiki on it, but I still can't get it to work. Here is my sshd_config

ListenAddress 0.0.0.0
Protocol 2
UsePAM yes
Banner Hi!
Subsystem       sftp       /usr/lib/ssh/sftp-server

X11Forwarding yes
AllowTcpForwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

When I go to use putty.exe I set my settings to
Enable X11 forwarding
X display location = localhost:0
And I'm using MIT-Magic-Cookie-1

Whenever I go to run xclock  or firefox I get

Error: Can't open display: localhost:10.0

I can not figure out what I'm screwing up.

Just an advice: Wouldn't be easier to just tunnel the connection to the remote machine and run x11vnc?
In my case, I'm just connected all the day to my home machine. I use, as I said, x11vnc as server and remmina/vncviewer/put-your-vnc-client-here/etc to reach my desktop.

If you're interested on the setup, please ask.


They say that if you play a Win cd backward you hear satanic messages. That's nothing! 'cause if you play it forwards, it installs windows.

Offline

#6 2009-12-11 03:54:28

jaloz
Member
Registered: 2008-11-18
Posts: 25

Re: X11 forwarding over SSH

Possibly a silly question but do you have an X server running on the Windows box?

Offline

Board footer

Powered by FluxBB