Re: suggestion[data in .sig file]
* will trillich (email@example.com) spake thusly:
> DEBIAN NEWBIE TIP #110 from Dimitri Maziuk <firstname.lastname@example.org>
> Here's how to TUNNEL SECURE X11 CONNECTIONS THROUGH SSH: on the
> client, do this:
> client# export DISPLAY=client:0.0
> client# ssh -X server
> then once you're logged in at the server, do:
> server# netscape &
> The environment created at the server will include the DISPLAY
> variable, so netscape (or whatever) will dialogue with the
> client machine. (See "man ssh" for more.)
I said that? I guess I might have...
The actual tip is:
OpenSSH will not forward X connections if the local DISPLAY variable
is not set. I.e.
export DISPLAY= ; ssh -X server ; netscape <-- "Cannot open display"
export DISPLAY=:0.0 ; ssh -X server ; netscape <-- works
No idea if it's true of other SSHs.
The hostname part in DISPLAY is not needed. In fact, on my box (snapper;
woody, OpenSSH 2.9.9p2),
export DISPLAY=snapper:0.0 ; ssh -X server ; nedit
connect snapper port 6000: Connection refused
so it's actually *wrong*. IIRC it worked on some old version of OpenSSH
(or maybe it was just a brane fart), but it certainly doesn't work now.
"Mirrors and copulation are abominable because they increase the number of
entities." -- corollary to Occam's Razor