On Tue, Apr 04, 2000 at 08:53:27PM -0400, Dan Christensen wrote: > When I connect to my laptop using ssh, X forwarding doesn't work. > For example: > > jdc@scratchy:~% ssh localhost xterm > X11 connection rejected because of wrong authentication. > > X connection to scratchy:11.0 broken (explicit kill or server shutdown). > jdc@scratchy:~% ssh localhost echo \$DISPLAY > scratchy:12.0 > > When I connect from the laptop to other machines, forwarding works > properly. I have forwarding turned on. This sounds like a bug that's been in openssh for a while. Try this: * login to the laptop * "xauth list" * you should see output something like this (don't worry if it doesn't match exactly) scratchy.foo.bar:11 MIT-MAGIC-COOKIE-1 b3ddeb59fa5ded5bab071da1e07 ^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ * Take that information above, and execute this command: xauth add scratchy/unix:11 MIT-MAGIC-COOKIE-1 b3ddeb59fa5ded5bab071da1e07 ^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ If X suddenly works, then it is the bug. The problem is that X uses unix domain sockets when it realizes it's connecting to the local host, but openssh only provides authority info for tcp sockets. Hopefully this gets fixed soon... -- finger for GPG public key.
Attachment:
pgptwUrhxPHA0.pgp
Description: PGP signature