This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: problem with starting programs via ssh / cannot see environment variable


On Aug  2 07:42, Giger  Mathias wrote:
> 
> the variables are system variables. it's quite mysterious, but only some of the 
> defined system variables can be seen when logging in via ssh. As already mentioned,
> in a cygwin console on the respective host all the variables are available.
> 
> the only way to overcome the problem was to redefine the environment variables 
> in the .bashrc file. 

There are various other ways to define these variables.  However, not
seeing the variables from the system environment is OpenSSH policy.
The variables set resp. inherited by default is somewhat like the
bare minimum to allow Windows applications to run.  This is more or
less equal to what the SSH daemon does on other operating systems.
The child process only inherits a base set of environment variables
and further environment entries have to be added afterwards.

Bottom line:  It's expected that you have to redefine the variable
values by some measure in the child shell.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]