Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: Cygwin List Message-Id: <6.1.0.6.0.20040805115220.03343fe8@pop.prospeed.net> X-Sender: Date: Thu, 05 Aug 2004 11:56:21 -0400 To: Rachan Malhotra , Cygwin List From: Larry Hall Subject: Re: WinXP service problem In-Reply-To: <411249F2.2020209@freightdesk.com> References: <4110F2D2 DOT 6090608 AT freightdesk DOT com> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040804105419 DOT 03341480 AT pop DOT prospeed DOT net> <41110A32 DOT 1090408 AT freightdesk DOT com> <6 DOT 1 DOT 0 DOT 6 DOT 0 DOT 20040804135759 DOT 033464a8 AT pop DOT prospeed DOT net> <411249F2 DOT 2020209 AT freightdesk DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, hits=0.0 required=4.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on ns2.prospeed.net At 10:53 AM 8/5/2004, you wrote: >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. Ah, OK. Yeah, that would be a problem. I had thought you had said you were running this service as the user you wanted to 'ssh' as but I guess I didn't. You could try that. That should help (and keep you from needing to specify the 'id_rsa' file. >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. Yeah, I wouldn't bother at this point. I think you've found the issue. -- 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/