>>>> "Ted" == Ted Phelps
<phelps(a)dstc.edu.au> writes:
Ted> Michael Sperber [Mr. Preprocessor] may have said:
> sams[41] ssh sams
> Last login: Mon Feb 11 11:30:46 2002 from sams
> FreeBSD 4.3-RELEASE (SAMS) #1: Mon May 7 13:35:27 MST 2001
> sams[31] gnuclient
> channel 0: istate 4 != open
> channel 0: ostate 64 != open
>
> ... and server-side:
>
> (2) (x/critical) I/O Error 32 (Broken pipe) on display connection
> "sams:10.0" after after 0 requests (0 known processed)
> with 0 events remaining.
> Throwing to top level.
Ted> That sucks. Do normal X applications work? xlogo is a good test :-)
Yes. (They work fine from the ssh session, but XEmacs is
sitting outside the ssh session.) See below.
Ted> I'm using openssh-3.0.2p1 on both ends. I assume you don't need an
Ted> explicit "-X" in version 2?
No. (OT: This actually has nothing to do with version 2. There's an
appropriate clause in ssh_config for the host in question.)
> I wonder how your gnuserv XEmacs gets at the necessary xauth
> information. But even with that in place, things fail in the same
> way.
Ted> I thought SSH X tunnel dealt with that:
Ted> ssh will also automatically set up Xauthority data on the server machine.
Ted> For this purpose, it will generate a random authorization cookie, store
Ted> it in Xauthority on the server, and verify that any forwarded connections
Ted> carry this cookie
Right. But for the connection to carry the cookie, it needs access to
the cookie. In the setup out here, ssh stores it in a file referenced
by the XAUTHORITY environment variable.
sams[5] printenv XAUTHORITY
/tmp/ssh-m2s3yDrk/cookies
Which the XEmacs I'm connecting to of course doesn't have. If I do
the analogous thing in a local server-side xterm (with an ssh
connection to that server open), I get this:
sams[31] setenv DISPLAY sams:10.0
sams[32] setenv XAUTHORITY /tmp/ssh-m2s3yDrk/cookies
sams[33] xlogo # this works
sams[34] unsetenv XAUTHORITY
sams[35] xlogo
X connection to sams:10.0 broken (explicit kill or server shutdown).
What does (getenv "XAUTHORITY") say for you in the XEmacs started off
of gnuclient?
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla