Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Message-ID: <411249F2.2020209@freightdesk.com>
Date: Thu, 05 Aug 2004 10:53:38 -0400
From: Rachan Malhotra <rMalhotra@freightdesk.com>
User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616)
MIME-Version: 1.0
To: Cygwin List <cygwin@cygwin.com>
Subject: Re: WinXP service problem
References: <4110F2D2.6090608@freightdesk.com> <6.1.0.6.0.20040804105419.03341480@pop.prospeed.net> <41110A32.1090408@freightdesk.com> <6.1.0.6.0.20040804135759.033464a8@pop.prospeed.net>
In-Reply-To: <6.1.0.6.0.20040804135759.033464a8@pop.prospeed.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Ok. I think I figured out the problem. But I still do not have a 
solution for it. Here's what I think the problem is:
When the script is run as a windows service, the user that's calling the 
script is SYSTEM. Inside the script is a call to ssh client with the 
required parameters. I pass it the absolute path of the id_rsa file. The 
issue seems to be that user SYSTEM is not the owner of id_rsa file so it 
is being asked for a passphrase. On the contrary, if I add the batch 
script to startup programs, then no passphrase is asked and I am logged 
in right away. The problem here is that the command prompt window stays 
on the screen. This is something I wanted to avoid to begin with.

I haven't gotten around to start the server in debug mode since I 
haven't found a suitable time to bring down the ssh server.

Thanks
Rachan

Larry Hall wrote:

>At 12:09 PM 8/4/2004, you wrote:
>  
>
>>I turned on verbosity for the client and performed my tests- called the batch script directly and from the seervice. Attached are the logs from SSH client for both cases. I have removed my server name and user name for security reasons.
>>
>>Thx for your help,
>>Rachan
>>    
>>
>
>
>OK, that's really not much help, as I suspected.  All it shows is that
>the server responded differently to the key in one session than the other.
>You really need to start the server in debug mode and try each of these 
>again.  That's likely to provide you more insight to the problem.
>
>Two other things I noted:
>
>  1. You're using 'autossh.exe'.  Since this isn't part of a Cygwin 
>     package, I'm assuming you built this locally via Cygwin.  In any case,
>     I'd recommend pulling this out of the equation.  I'm not confident that
>     this is causing you any of the difficulties you're seeing but it makes
>     sense to eliminate the possibility.  Also, if there is a problem there,
>     it's not obvious that it's OT for this list at the moment.
>
>  2. You should really use your id_ra.pub file instead.
>     
>
>
>--
>Larry Hall                              http://www.rfk.com
>RFK Partners, Inc.                      (508) 893-9779 - RFK Office
>838 Washington Street                   (508) 893-9889 - FAX
>Holliston, MA 01746                     
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Problem reports:       http://cygwin.com/problems.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>
>
>
>  
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

