delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Andrew Schulman <schulman DOT andrew AT epamail DOT epa DOT gov> |
Subject: | Re: ssh and user env vars from control panel |
Date: | Wed, 02 Mar 2011 16:54:28 -0500 |
Lines: | 16 |
Message-ID: | <neatm697hv3p058mbrscpc282g2i0pkjc4@4ax.com> |
References: | <4D6DB62D DOT 4050108 AT cpan DOT org> <4D6E9E11 DOT 3020507 AT cygwin DOT com> |
Mime-Version: | 1.0 |
X-Archive: | encrypt |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
> > 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |