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 Subject: Re: ssh and user env vars from control panel Date: Wed, 02 Mar 2011 16:54:28 -0500 Lines: 16 Message-ID: References: <4D6DB62D DOT 4050108 AT cpan DOT org> <4D6E9E11 DOT 3020507 AT cygwin DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive: encrypt X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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