[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: suggestion[data in .sig file]



On Tue, Mar 05, 2002 at 01:46:13PM -0600, Dimitri Maziuk wrote:
> 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.

good to tweak the tips, if you know what i mean. :)

how's this?

-- 
I use Debian/GNU Linux version 2.2;
Linux server 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i586 unknown
 
DEBIAN NEWBIE TIP #110 from Dimitri Maziuk <dmaziuk@yola.bmrb.wisc.edu>
:
Here's how to TUNNEL SECURE X11 CONNECTIONS THROUGH SSH: on the
client, do this:
	local-client# export DISPLAY=:0.0
	local-client# ssh -X server
then once you're logged in at the server, do:
	remote-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.)

Also see http://newbieDoc.sourceForge.net/ ...



Reply to: