delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/05/05/17:23:44

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: <4DC31547.3060407@cwilson.fastmail.fm>
Date: Thu, 05 May 2011 17:23:19 -0400
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.17) Gecko/20110414 Thunderbird/3.1.10
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: ssh issues
References: <m3wri4opns DOT fsf AT winooski DOT ccs DOT neu DOT edu> <ipv3i8$edg$1 AT dough DOT gmane DOT org>
In-Reply-To: <ipv3i8$edg$1@dough.gmane.org>
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 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019