Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange problem using X over ssh
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
dboli42
n00b
n00b


Joined: 28 Jan 2005
Posts: 20
Location: Boston, MA

PostPosted: Sat Jun 04, 2005 2:24 am    Post subject: Strange problem using X over ssh Reply with quote

When I try to use X11 forwarding via ssh from my amd64 machine I get this error:

Code:
_X11TransSocketINETConnect() can't get address for localhost:6010: Name or service not known


I have no idea what this means, googling hasn't turned up anything useful, and remerging ssh/xorg-x11/glibc/gcc etc has no effect (not that Ithought it would). Anybody have any ideas about what might be causing this?
Back to top
View user's profile Send private message
rutski89
Guru
Guru


Joined: 14 Mar 2005
Posts: 468
Location: United States N.Y.

PostPosted: Sat Jun 04, 2005 5:49 am    Post subject: Reply with quote

Just make sure that on the client box you've run "xhost <xhost's ip>" and then set the client DISPLAY var to "localhost:0.0" or just "0.0" with
Code:
export DISPALY="localhost:0.0"
The quotes matter, so be sure to get it right. Do the same thing on your host box, only export DISPLAY="<remote client>:0.0" this time. I'm pretty sure you know all this already, but I'm asking anyway just to be sure its not a silly problem thats behind this.
_________________
<< ^ | ~ >>
Back to top
View user's profile Send private message
dboli42
n00b
n00b


Joined: 28 Jan 2005
Posts: 20
Location: Boston, MA

PostPosted: Sat Jun 04, 2005 6:41 am    Post subject: Reply with quote

No that's not the problem. Thanks anyway.
Back to top
View user's profile Send private message
drefo
n00b
n00b


Joined: 28 May 2005
Posts: 46

PostPosted: Sat Jun 04, 2005 8:59 am    Post subject: Re: Strange problem using X over ssh Reply with quote

dboli42 wrote:


Code:
_X11TransSocketINETConnect() can't get address for localhost:6010: Name or service not known




The X forwarding server tries to bind localhost on port 6010, but the name can't be resolved
to a tcp/ip pair: so the connection fails. You need to have this in /etc/hosts:

Code:

127.0.0.1                localhost


It's weird that it wasn't there already. Hopefully that solves it.
Back to top
View user's profile Send private message
dboli42
n00b
n00b


Joined: 28 Jan 2005
Posts: 20
Location: Boston, MA

PostPosted: Sat Jun 04, 2005 3:13 pm    Post subject: Reply with quote

Thanks for the response, that was the explaination I was looking for, and the solution. For reasons that aren't entirely clear anymore I'd modified /etc/hosts, but forgot that I had done so.
Back to top
View user's profile Send private message
drefo
n00b
n00b


Joined: 28 May 2005
Posts: 46

PostPosted: Sun Jun 05, 2005 7:37 am    Post subject: Reply with quote

Cheers! I can't even count the number of times I've changed config files
and later on forgotten why, or even that I had done it at all :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum