ssh and user env vars from control panel

Andrew Schulman schulman.andrew@epamail.epa.gov
Wed Mar 2 21:54:00 GMT 2011


> > I generally set most of my environment variables in the System control
> > panel for my user, instead of in my .bashrc/.zshrc
> >
> > I noticed that when I log in to Cygwin via ssh, these environment
> > variables are not available.
> >
> > Would this be considered a misfeature?
> 
> No, it's considered a security feature.  The environment for OpenSSH is
> stripped to the basics so as to not let lots of information about the remote
> system slip through to the client.  If there's stuff you want in your OpenSSH
> session that you're not getting now, a small script that you can run after
> login is the prescribed solution.

You can also use the ~/.ssh/environment file, if the ssh server has
PermitUserEnvironment set to yes.  See ssh(1).


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



More information about the Cygwin mailing list