You are not logged in.

#1 2010-01-16 00:41:20

Greenstuff
Member
From: Israel
Registered: 2009-06-30
Posts: 64

[Solved] Xforwarding with ssh: Can't open display localhost 10.0

Hey, I have the following trouble:
I have a server with Xauth installed and forewarding enabled. However, I seem to get the following massage after running ssh -X $host xclock:
Error: Can't open display: localhost:10.0

Here's my server's /etc/ssh/sshd_config file:

#Port 22
ListenAddress 0.0.0.0
#ListenAddress ::

Protocol 2

ChallengeResponseAuthentication no

UsePAM yes
XAuthLocation /usr/bin/xauth
AllowAgentForwarding yes
AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

Subsystem    sftp    /usr/lib/ssh/sftp-server

Any help is much appriciated!

EDIT:
Tried setting AllowX11Forwarding yes in the /etc/ssh/sshd2_config file, but it didn't help

Last edited by Greenstuff (2010-01-16 13:16:55)

Offline

#2 2010-01-16 03:22:25

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [Solved] Xforwarding with ssh: Can't open display localhost 10.0

I always had to do 'xhost +' w/out quotes on the client machine. Try that and see if that helps.


Website - Blog - arch-home
Arch User since March 2005

Offline

#3 2010-01-16 10:13:00

Greenstuff
Member
From: Israel
Registered: 2009-06-30
Posts: 64

Re: [Solved] Xforwarding with ssh: Can't open display localhost 10.0

pyther wrote:

I always had to do 'xhost +' w/out quotes on the client machine. Try that and see if that helps.

Nope, problem persists sad

Offline

#4 2010-01-16 13:16:39

Greenstuff
Member
From: Israel
Registered: 2009-06-30
Posts: 64

Re: [Solved] Xforwarding with ssh: Can't open display localhost 10.0

Ok, I talked to people at IRC. Finally one gave me the answer: I needed to put this in /etc/hosts:

127.0.0.1        localhost

This fixed it for me.

Offline

Board footer

Powered by FluxBB