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