View previous topic :: View next topic |
Author |
Message |
dboli42 n00b
Joined: 28 Jan 2005 Posts: 20 Location: Boston, MA
|
Posted: Sat Jun 04, 2005 2:24 am Post subject: Strange problem using X over ssh |
|
|
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 |
|
|
rutski89 Guru
Joined: 14 Mar 2005 Posts: 468 Location: United States N.Y.
|
Posted: Sat Jun 04, 2005 5:49 am Post subject: |
|
|
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 |
|
|
dboli42 n00b
Joined: 28 Jan 2005 Posts: 20 Location: Boston, MA
|
Posted: Sat Jun 04, 2005 6:41 am Post subject: |
|
|
No that's not the problem. Thanks anyway. |
|
Back to top |
|
|
drefo n00b
Joined: 28 May 2005 Posts: 46
|
Posted: Sat Jun 04, 2005 8:59 am Post subject: Re: Strange problem using X over ssh |
|
|
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 |
|
|
dboli42 n00b
Joined: 28 Jan 2005 Posts: 20 Location: Boston, MA
|
Posted: Sat Jun 04, 2005 3:13 pm Post subject: |
|
|
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 |
|
|
drefo n00b
Joined: 28 May 2005 Posts: 46
|
Posted: Sun Jun 05, 2005 7:37 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|