Pat,
        true as far as it goes, but unfortunately it doesn't go far
enough. SSH_CLIENT is set to ltspl server address, not workstation.
Setting up environment on turtle is fine only if the users never move to a
different workstation. since this happens infrequently, this is what i do
now, but i really need a dynamic setup. you did get me to start rereading
the o'reilly book though. thank you, julius

On Mon, 4 Feb 2002, Dumas Patrice wrote:
> I have read this in the ssh man page (variable set by an ssh connection):
>
> SSH_CLIENT
>              Identifies the client end of the connection.  The variable con�
>              tains three space-separated values: client ip-address, client
>              port number, and server port number.
>
> Maybe your printing application could get it and use it. I tried with an
> xterm but this variable wasn't set, but it may be related with the xterm
> overriding the environment, and not with ssh.
>
> There is also that in the ssh man page, but I don't know if it is easy to
> change it dynamically:
>
>      Additionally, ssh reads $HOME/.ssh/environment, and adds lines of the
>      format ``VARNAME=value'' to the environment.
>
> Pat
>
>
> 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
>
>
> _____________________________________________________________________
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>       https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.openprojects.net
>


_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.openprojects.net

Reply via email to