X forwarding (still) broken on Linux

Chris Barker barker at ling.ucsd.edu
Wed Apr 12 01:27:24 EST 2000

On Tue, Apr 11, 2000 at 01:41:43PM +0200, Dominik Brettnacher wrote:
> I am having the same problem on FreeBSD. I haven't got any clue,
> unfortunately.

After disecting lots of packets, I have a workaround: the fake cookie
must be for the /unix connection type.  To try the workaround, use the
following line as the relevant .ssh/rc file:

if read proto cookie; then echo add $DISPLAY $proto $cookie | perl -n -e 's!:!/unix:!;' -e 'print;' | /usr/X11R6/bin/xauth -q -; fi

This simply adds the string "/unix" at the appropriate point before
the fake X11 cookie file is loaded with the fake cookie.  The cookie
file that results from this rc file contains information like:

localhost.localdomain/unix:12  MIT-MAGIC-COOKIE-1 41c7fd607a4333e093129faa992aba1c

I'm sure it would be easy to modify the code to add a second cookie
with /unix speicified.

Hope this helps.


More information about the openssh-unix-dev mailing list