Re: NEWBIE TIP #110 [was Re: suggestion[data in .sig file]]
* Dimitri Maziuk (dmaziuk@yola.bmrb.wisc.edu) spake thusly:
> * Crispin Wellington (crispin@aeonline.net) spake thusly:
> > On Thu, 2002-03-07 at 18:13, Hans Ekbrand wrote:
> ...
> > > I fail to understand why you came up with the example above. No one
> > > have suggested or commented any such thing.
> >
> > I wasn't subscribed when the first post came in so Im exempt. But I
> > agree completely. Leave out the export DISPLAY.
> >
> > Doing the above *works* but bypasses any X forwarding ssh sets up for
> > you and sends the X forwarding directly to the client without
> > encryption. In fact the default DISPLAY setting on a -X login is
> > connected to the server itself...
>
> Crispin, Hans: I think you need to work on your reading comprehension.
> Which part of "ssh won't forward X connections if *local* DISPLAY is
> not set" escapes you? Try this at home:
>
> client # export DISPLAY=
> client # ssh -X server
> server # netscape
>
> If local $DISPLAY is not set, ssh assumes X is not running on local
> machine, so there is nowhere to forward X connections *to*. Is that
> so hard to figure out?
>
> The wrong part of the tip is that export DISPLAY=client:0.0 worked
> on some versions of ssh client & server, but not on the current
> version. export DISPLAY=:0.0 is what works now (*note* *no*
> *hostname*). An experienced unix user would probably know to try
> both, but a newbie will simply turn around and decide that Great
> Debian Newbie Tips database is not worth crap.
What pisses me off is that
1. the tip is only relevant if you're using a b0rked xterm
(or whatever) that unsets $DISPLAY,
2. with current version of OpenSSH the hostname part in $DISPLAY
is wrong,
3. evidently, a lot of people find the tip confusing,
4. this whole mess is signed with *my* name and e-mail address, and
5. NOBODY TOLD ME THEY WERE GOING TO PUT MY NAME ON IT.
Call me old-fashioned, but where I grew up signing other people's
names without asking them first was considered a no-no.
Dima
--
Backwards compatibility is either a pun or an oxymoron. -- PGN
Reply to: