ssh and X
Derek Atkins
warlord at MIT.EDU
Tue Jan 25 13:31:19 EST 2000
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 <dmartin at ne.arris-i.com> 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
> derekm at mediaone.net | dmartin at ne.arris-i.com
> -------------------------------------------------
>
> -
> Subcription/unsubscription/info requests: send e-mail with
> "subscribe", "unsubscribe", or "info" on the first line of the
> message body to discuss-request at blu.org (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
warlord at MIT.EDU PGP key available
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list