X-Recipient: archive-cygwin@delorie.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: <4DC31547.3060407@cwilson.fastmail.fm>
Date: Thu, 05 May 2011 17:23:19 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
Reply-To: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: ssh issues
References: <m3wri4opns.fsf@winooski.ccs.neu.edu> <ipv3i8$edg$1@dough.gmane.org>
In-Reply-To: <ipv3i8$edg$1@dough.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
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 5/5/2011 5:07 PM, René Berber wrote:
> On 5/5/2011 3:31 PM, Eli Barzilay wrote:
>> But now I'm trying to set up a Windows 7 build machine, and things get
>> more complicated in a way that I think is related to the above.  The
>> first thing that fails (after I start sshd as myself, similarly to the
>> XP box) is running the vcvarsall.bat in the devstudio directory --
>> that fails with a "Cannot determine the location of the VS Common
>> Tools folder", which I tracked down to uses of some `reg' command that
>> fail.  The thing is that it works fine when running on a bash shell on
>> the machine, but fails through ssh.
>>
>> Any pointers?
> 
> Environment variables.  When you login using ssh you get a different set
> than the ones your Windows login has, including a modified PATH.

env vars are a common issue (see:
http://cygwin.com/ml/cygwin/2010-08/msg00245.html) but in this case I
think it's somewhat different.

On Vista and W7, the sshd process is running in a different "Windows
Station" than the normal login.  This *might* mean that the 'reg'
command is accessing a different registry hive that you think it should.
 Can you run the 'reg' command manually, from a standard login and from
an sshd session, and see what the results are in each case?

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

