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

Re: More SSH Fun (X11 forwarding)

* Anne Carasik (gator@cacr.caltech.edu) [020701 16:34]:
> Hi Vineet,
> It doesn't matter--it's still does not work no matter what I do
> to my X server.
> Anyway, I turned off xhost and X11 listening a while ago.

Right. My point was that this is a way /around/ ssh forwarding. It won't
make it any easier to get ssh forwarding working, and can only confuse
the issue. Glad you've moved on from it.

So anyway, here's a basic rundown of things to double-check:

the server has "X11Forwarding yes" in its config (and that config has
been loaded, i.e. the server has been restarted since the change).

the client has X11Forwarding yes in its config, in the right place (i.e.
after where it says "Host *", and no later declarations override and
disable it.)

you're not connecting with a key which is restricted with a
no-X11-forwarding directive in the options section of the

DISPLAY is set on the client, and displaying of local X apps works
before ever attempting a connect to the remote server. This means that
the local xauth cookie is valid and authorized to connect to the local
X server.

xauth is found at /usr/bin/X11/xauth, or the correct location is
specified correctly with an XAuthLocation directive in the remote
sshd's sshd_config, and the connecting user has correct (+rx)
permissions on it.

That's all I can come up with off the top of my head right now.  I know
you did say that you've done some of the things mentioned above, but if
it's still failing, it's a good idea to double-check that all of those
above conditions are met. Sometimes when changing lots of things around
in desperation, we forget to change something back.

I'm about to review the thread one more time to see if you've posted any
"ssh -v" or "sshd -d" outputs that may provide additional insight. If it
continues to fail, those may be useful for us to diagnose the problem.

good times,
"Computer Science is no more about computers
than astronomy is about telescopes." -E.W. Dijkstra

Attachment: pgpKNzx1a4cFK.pgp
Description: PGP signature

Reply to: