X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=4.5 required=5.0	tests=AWL,BAYES_50,BOTNET,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-id: <4D6E9E11.3020507@cygwin.com>
Date: Wed, 02 Mar 2011 14:44:17 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: ssh and user env vars from control panel
References: <4D6DB62D.4050108@cpan.org>
In-reply-to: <4D6DB62D.4050108@cpan.org>
Content-type: text/plain; charset=UTF-8; format=flowed
Content-transfer-encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 3/1/2011 10:14 PM, Rafael Kitover wrote:
> Hello list,
>
> 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.

-- 
Larry

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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

