delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/04/11:02:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.1.0.6.0.20040804105419.03341480@pop.prospeed.net>
X-Sender:
Date: Wed, 04 Aug 2004 11:02:44 -0400
To: Rachan Malhotra <rMalhotra AT freightdesk DOT com>, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: WinXP service problem
In-Reply-To: <4110F2D2.6090608@freightdesk.com>
References: <4110F2D2 DOT 6090608 AT freightdesk DOT com>
Mime-Version: 1.0

At 10:29 AM 8/4/2004, you wrote:
>Hi,
>
>I am facing a problem when I try to start cygwin ssh client as Windows service. The task is to automatically login to a ssh server without user intervention. Below is the scenario.
>
>I am trying to automatically connect to a Fedora Core2 server from my WinXP laptop. I have installed cygwin ssh client on my laptop and created a service to call a simple batch script which in turn calls ssh.exe with the required parameters. I am using RSA keys without passphrase to avoid entering password every time the service is started. The problem is that every time the service starts, it prompts for a passphrase. However, if I open a command prompt and manually call the batch script, it does not ask for a passphrase and directly log me into the server.
>
>Please let me know of any information you might have about this. I will highly appreciate any help.


Are you sure it's asking you for your passphrase and not your user password?
Is the user that the service is run as the one logging in or are you
specifying that too?

The easiest way to debug this is to start the server with verbosity turned
on to the max and compare the results of sshing with the service and without.
You can turn on verbosity for the clients too, though I expect that would be
a little less useful in this case.



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

- Raw text -


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