delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4D6EA57A.1090009@cwilson.fastmail.fm> |
Date: | Wed, 02 Mar 2011 15:15:54 -0500 |
From: | Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> |
Reply-To: | Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.14) Gecko/20110221 Thunderbird/3.1.8 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: ssh and user env vars from control panel |
References: | <4D6DB62D DOT 4050108 AT cpan DOT org> <4D6E9E11 DOT 3020507 AT cygwin DOT com> |
In-Reply-To: | <4D6E9E11.3020507@cygwin.com> |
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 |
On 3/2/2011 2:44 PM, Larry Hall (Cygwin) wrote: > On 3/1/2011 10:14 PM, Rafael Kitover wrote: >> 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. > Or change /etc/sshd_config on the server and enable PermitUserEnvironment yes and then you can add a file on the server: ~/.ssh/environment that contains the envvars you want to sshd to set for incoming connections authenticated as you, and the desired values. Note that 'man sshd_config' warns about this option, as it can be exploited. See here: http://cygwin.com/ml/cygwin/2010-08/msg00246.html -- Chuck -- 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 |