The most common explanation is that the machines are not set up identically
in fact. The shell login scripts or files they source are overwriting the
DISPLAY variable that ssh provides.
The following header lines retained to effect attribution:
|From: "Gary Strahan" <[EMAIL PROTECTED]>
|Date: Fri, 28 Apr 2000 18:45:16 -0400
|To: [EMAIL PROTECTED]
|Subject: Re: about GUI
|In this regard, I've noticed that on *some* of our computer X forwarding
|occurs automatically when using ssh2, but on others it does not. Since all
|machines were set up identically, it is very confusing and irritating.
|I've noticed that, if I slogin to machine "A_host" and check the setting
|of DISPLAY with the "env" command, it will say: "DISPLAY=A_host:11.0
|That seems to properly X-forward.
|However, on those machines which do not X-forward (all of the others!),
|when I slogin into any of our other machines, e.g., "B_host",
|then DISPLAY=:0
|On these machines I seem to have no choice but to use setenv
|DISPLAY=<hostname>:0.0
|Does anyone have a suggested explanation?
|Have I missed something?
|Gary
|Andersson, Mats wrote:
|> Subject: Re: about GUI
|> Hi,
|> On Thu, 27 Apr 2000, David McCabe wrote:
|> > do is run an X server on the machine you are connecting from, and set
|> > your DISPLAY properly on the server after you ssh in.
|> >
|> > setenv DISPLAY $REMOTEHOST:0.0
|> Excuse me if I missed something that was said earlier but this doesn't
|> sound as if you are tunneling the X connection at all?! The DISPLAY on
|the
|> (ssh) server host is set by the sshd to e.g. "yourserverhost:10.0". If
|you
|> set the display to something else the X protocol will travel unenrypted
|> (at least not tunneled through ssh). Especially if you set the DISPLAY
|to
|> "yourclienthost:0.0" the X connection will go directly (unencrypted) to
|> your client host (running the X server).
|> Cheers,
|> /Mats
|>-- End of excerpt from Andersson, Mats
Randolph J. Herber, [EMAIL PROTECTED], +1 630 840 2966, CD/CDFTF PK-149F,
Mail Stop 318, Fermilab, Kirk & Pine Rds., PO Box 500, Batavia, IL 60510-0500,
USA. (Speaking for myself and not for US, US DOE, FNAL nor URA.) (Product,
trade, or service marks herein belong to their respective owners.)