> I created a file ~/.ssh/rc as per your suggestion in the machine that I am
>  logging into ("aerogold" in this case).  Logging in gives me this:

> [mat...@quadzilla ~]$ ssh -Y emat...@aerogold
> emat...@aerogold's password: 
> Last login: Thu Mar 18 14:24:37 2010 from quadzilla.aero.nd.edu
> X11 connection rejected because of wrong authentication.
> xauth:  creating new authority file /tmp/.ematlis/.Xauthority
> xauth:  creating new authority file /tmp/.ematlis/.Xauthority
> X11 connection rejected because of wrong authentication.
> xhost:  unable to open display "localhost:10.0"
> [emat...@aerogold ~]$ echo $XAUTHORITY
> XAUTHORITY: Undefined variable.

Sorry I pasted in the wrong version, from an older machine.  Here's
what I have on my own Fedora 12 box after the lines creating the
directory in /tmp and setting XAUTHORITY:

if [ "$DISPLAY" = "" ]; then exit 0 ; fi
if read proto cookie && [ -n "$DISPLAY" ]; then
        if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
                # X11UseLocalhost=yes
                echo add unix:`echo $DISPLAY | cut -c11-` $proto $cookie
        else
                # X11UseLocalhost=no
                echo add $DISPLAY $proto $cookie
        fi | xauth -q -
fi


-- 
Dave Goldberg
Associate Department Head, G06A: Advanced Technical Computing Center
The MITRE Corporation \ MS K331 \ 202 Burlington Rd. \ Bedford, MA 01730
d...@mitre.org \ 781-271-3887 (W) \ 781-439-7875 (M)
_______________________________________________
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info

Reply via email to