You need to copy your .Xauthority file.  This file is created at every
login and sshd uses that to authorize X connections.  My routine is:

ssh accesshost
...
accesshost% rcp .Xauthority remotehost:
accesshost% echo $DISPLAY
accesshost:10.0
accesshost% rlogin remotehost
...
remotehost% setenv DISPLAY accesshost:10.0
remotehost%

-derek

Derek Martin <[EMAIL PROTECTED]> writes:

> 
> 
> Anyone have any experience forwarding X sessions through ssh?  I'm logging
> into one "access point" from which I have no trouble running X clients and
> having them show up on my display (even through my Linux IP masquerading
> firewall/proxy!  Very cool), but if I then telnet from that access point
> to another machine on the "inside" network, and set my DISPLAY to what
> sshd sets it to, I get the message:
> 
> X11 connection rejected because of wrong authentication.
> X connection to saxophone:10.0 broken (explicit kill or server shutdown).
> 
> I'll admit I haven't spent a huge amount of time reading the X-related
> stuff in the manpages, but I thought someone might know what I'm doing
> wrong (or not doing at all) off the top of their head.
> 
> Thanks
> 
> -- 
> "Quis custodiet ipsos custodes?"    "Who watches the watchmen?" 
> -Juvenal, Satires, VI, 347 
> 
> Derek D. Martin      |  Senior UNIX Systems/Network Administrator
> Arris Interactive    |  A Nortel Company
> [EMAIL PROTECTED]  |  [EMAIL PROTECTED]
> -------------------------------------------------
> 
> -
> Subcription/unsubscription/info requests: send e-mail with
> "subscribe", "unsubscribe", or "info" on the first line of the
> message body to [EMAIL PROTECTED] (Subject line is ignored).

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/      PP-ASEL      N1NWH
       [EMAIL PROTECTED]                        PGP key available


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to