Re: problem with X forwarding
From: Rajeev Kumar (rajeev_at_rajeevnet.com)
Date: Mon, 25 Aug 2003 11:58:34 -0400 To: Pupeno <firstname.lastname@example.org>
Make sure ssh was able to setup X11 tunnel. ssh usually have some entry
in /etc/sshd_config file.
which says how it is going to listen for X11 connection like in above
case it is going to listen at port 6010 (offset 10 from std X11 port
6000). SO after you ssh to server then at server try one of this.
telnet localhost 6011
(Looks like in your case it offset is 11)
see if this gives something like this.
Connected to localhost.
Escape character is '^]'.
if not than there is a problem in binding this port, try some other
offset value, other than 6000. Also on machine A try
xhost + (I don't think if this is a problem as ssh X11 is little different)
hope this helps to start debugging.
> I don't know if this is the right list to post about this problem, but I'm
> reaching the desperate state.
> I'm ssh from computer A to computer B, running a X application in B expecting
> to be shown in A's X server.
> X forwarding is enabled in both computers, A and B in both,
> /etc/ssh/ssh_config and /etc/ssh/sshd_config.
> But when I run the application a get this error:
> _X11TransSocketOpen: socket() failed for tcp
> _X11TransSocketOpenCOTSClient: Unable to open socket for tcp
> _X11TransOpen: transport open failed for tcp/localhost:11
> Error: Can't open display: localhost:11.0
> Do you have any idea of what may happen ?
> In A, I was able to connect when I was running Ark Linux, the problem appeared
> when I installed Gentoo so, I may say, the problem is in A since B didn't
> suffer any deep change.
> Any clue would be nice.
> Pupeno: email@example.com
> Help the hungry children of Argentina,
> please go to (and make it your homepage):
-- ____________________________________________________________________ Rajeev Kumar (firstname.lastname@example.org) http://www.rajeevnet.com -- PGP PUBLIC KEY -- http://www.rajeevnet.com/crypto/mypubkey ____________________________________________________________________ What's New on rajeevnet.com: o Firewalling HTTP traffic using reverse SQUID proxy. http://www.rajeevnet.com/hacks_hints/security/rev-squid-proxy.html ____________________________________________________________________