[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ssh X11 forwarding



Hi

Another question

I'm trying to connect from one linux box (with openssh 2.5.2p2 and XFree
3.3.6) to another one (with openssh openssh-2.9p1 and XFree 4). I can't
get X11 forwarding to work over that connection:I always get the error
message:

  Error: Can't open display: server:10.0

  $ echo $DISPLAY
  server:10.0
  $ echo $XAUTHORITY
  /tmp/ssh-ABQ19212/cookies
  $ netstat -l -n --tcp |grep ':60'
  tcp        0      0 0.0.0.0:6010            0.0.0.0:*               LISTEN

So it seems X forwarding is set.

When I try to connect with ssh from the client to itself (either to
localhost or to the host name) X forwarding works fine. I currently don't
have other clients and servers to check it with.

>From searching the web it seems that this error indicates an X
authorization error: the client manages to establish a connection to the
server, but is rejected. But I see no error messages from the server or
from ssh about a rejected client.

If I use the standard xauth authentication (xauth add) then I  can set
DISPLAY to client:0 and connection works fine.

One other thing I tried: From a normal xterm in client, I ran:
XAUTHORITY=/tmp/auth xauth add server:10  MIT-MAGIC-COOKIE-1 <cookey>
XAUTHORITY=/tmp/auth DISPLAY=server:10 xcalc

and xcalc pops up just fine.

I've tried running the same sequence on the server, and got the same error
as before.

[The choice of names 'client' and 'server' was a bit misleading, as the X
server runs on 'client' - the usual X server client-server confusion ;-)]

Any ideas? Have I got the error message wrong?

-- 
Tzafrir Cohen
mailto:tzafrir@technion.ac.il
http://www.technion.ac.il/~tzafrir


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il