Inheriting environment - sshd server to shell child

Ben Lindstrom mouring at
Tue Dec 24 01:54:54 EST 2002

I'm not sure why this should be important to you.  All critical variables
should be in your /etc/profile or your csh/tcsh equiv.  Cygwin is an
acception to the rule since it is really just a collection of UNIX utils
and not a full fledge OS.

- Ben

On Mon, 23 Dec 2002, Bryan Henderson wrote:

> The sshd server normally builds the environment variables from scratch
> for a shell process it creates.  Except when compile for Cygwin, it
> simply adds settings to its own set of environment variable settings.
> A comment in the code says this special case is made because in
> Cygwin, some of sshd's environment is important for child processes
> too.
> I don't run Cygwin (I run Linux), but on my system too, it is
> important that environment variable settings get inherited by all the
> processes.  In fact, in normal operation on my system, all the
> environment variables that sshd inherits are also relevant to every
> shell it spawns.
> Could preserving the environment be an option in sshd.config?
> --
> Bryan Henderson                                    Phone 408-621-2000
> San Jose, California
> _______________________________________________
> openssh-unix-dev at mailing list

More information about the openssh-unix-dev mailing list