On Sun, Feb 03, 2002 at 11:12:59PM -0500, Julius Szelagiewicz wrote:
> Jim,
>       this is true on its face, but ...  the DISPLAY variable is correct
> on the lstp server named, say, "ltspl" and points to wsxxx. so far so
> good. now on the workstation the user pops up the terminal window and
> types "ssh -X myname@turtle". provided the keys and passphrases are
> correct the user logs in on server "turtle". the DISPLAY variable on
> turtle points to turtle:10.0, which is correct - the X forwarding is on.
> what "turtle" doesn't know is which workstation is the X going to - this
> is handled by 'ltspl' server. "turtle" needs the workstation name to
> figure out the >printer< queues associated with this workstation. fun,
> huh? my o'reilly book on ssh has nothing on how to pass an arbitrary value
> to sshd server and have access to this value from the user environment.
>       the difficulty stems from the fact that i use ltsp server as a
> stepping stone to the business system, not as an end point in itself.
> thanks, julius

The ~/.ssh/environment file is read from the TARGET. So, in order to use
it, you must first copy it from the connection machine, in this case the
ltsp-server.

echo DISPLAY=$DISPLAY >.ssh/target_environment
scp -q .ssh/environment target:.ssh/
ssh target "echo $DISPLAY"

Works for me.

Attachment: msg02805/pgp00000.pgp
Description: PGP signature

Reply via email to