Message1208

Author mike.kupfer
Recipients
Date 2009-05-22.17:16:46
Content
Recent versions of ssh create a temporary XAUTHORITY file when you
connect using "ssh -X".  This causes problems using gnuclient, because
the XEmacs process doesn't have the right cookie to connect to the ssh
proxy server.  One way to work around this has been to have a script
or something in a dotfile that saves the cookie to ~/.Xauthority, so
that XEmacs can find it.  But in OpenSolaris and Fedora 10, gdm uses a
file other than ~/.Xauthority, and that file might not be known at the
time of the ssh login.

The workaround I'm using right now is to run a "fixxauth" script that does

    xauth list | while read foo; do 
    	gnudoit "(shell-command \"xauth add $foo\")"
    done

So I can do

  alice$ ssh -X bob
  bob$ fixxauth
  bob$ gnuclient

It would be good to get this functionality into gnuclient, so that the
xauth update happens automatically.  Some thought might be needed as
to when gnuclient should do this, e.g., all the time, in response to
an authorization failure (can gnuclient determine such a failure?), or
only if the user gives a (new) command-line flag.
History
Date User Action Args
2009-05-22 17:16:46mike.kupferlinkissue525 messages
2009-05-22 17:16:46mike.kupfercreate