Re: X11 forwarding from third machine

From: Darren Tucker (dtucker@dodgy.net.au)
Date: 10/01/02


From: dtucker@dodgy.net.au (Darren Tucker)
Date: Tue, 01 Oct 2002 03:45:55 GMT

In article <ry6m9.469886$kp.1327313@rwcrnsc52.ops.asp.att.net>,
Jonathan Edwards <edwards@metaprogramming.org> wrote:
[snip]
>When I ssh in i get DISPLAY=host:10.0 and X tunnels fine.
>I telnet to another box and set the same DISPLAY, run an X app, and I get:
>
>> Xlib: connection to "beyond.intranet.com:10.0" refused by server
>> Xlib: Authentication failed at PuTTY X11 proxy
>> Error: Can't open display: beyond.intranet.com:10.0

The telnet session doesn't have the correct xauth credentials to connect
to the Xserver. In your ssh session, type "xauth list" to find out the
key matching your $DISPLAY, then in the telnet session, use "xauth add"
to add the credentials.

Typically you'd use the "extract" and "merge" options in a pipeline,
something like:
"xauth nextract - $DISPLAY | ssh somehost xauth nmerge -"

Check the xauth man page for details.

Is it possible to ssh into the second box as well? That would save you
some trouble as ssh will do all of the $DISPLAY setting for you.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.



Relevant Pages

  • Re: SSH newbie question
    ... Telnet is not secure when applied to every possible Mac sold. ... And MacOSX does not enable ssh by default either. ... And shouldn't it display the welcome.txt file instead of the announce ... from working with OpenVMS and into Digital UNIX ...
    (comp.os.vms)
  • Re: X Error of failed request: BadAtom (invalid Atom parameter)
    ... Das wäre ja auch nur der SSH Teil des Problems. ... Wo hast Du Irgendwas mit telnet geschrieben? ... Weil telnet hier egal ist, wenn die DISPLAY Variable gesetzt ... einen hilfreichen Link posten? ...
    (de.comp.os.unix.x11)
  • Re: OT: Sony Vaio har drive removal
    ... do with some of the data off, before I send it for repair. ... X display and I can't get ssh or telnet to work to get into it via the ...
    (uk.rec.motorcycles)
  • Re: [SLE] Unexpected ssh, firefox and thunderbird behavior
    ... telnet shows the same behavior as ssh. ... >Telnet won't set the DISPLAY variable on the remote machine. ... >example (command by command) on how your perform these steps in order to run ...
    (SuSE)
  • Problems with DISPLAY and X
    ... first, I exchanged my ssh public keys on both pcs, just to be sure (I ... when I call xterm with set DISPLAY. ... Third I played around with xauth, took my key with xauth list and put it in on ...
    (Debian-User)