www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <46B3562C.821CE652@dessent.net> |
Date: | Fri, 03 Aug 2007 09:22:04 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
X-Mailer: | Mozilla 4.79 [en] (Windows NT 5.0; U) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: How to close a SSH connection from a BAT file |
References: | <loom DOT 20070801T062742-243 AT post DOT gmane DOT org> <46B0178A DOT 5887EC7F AT dessent DOT net> <loom DOT 20070803T084236-738 AT post DOT gmane DOT org> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
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 |
Anthony de Sousa wrote: > Brian Thanks for the suggestions and I was extreemly interested in trying your > suggestion of running the SSH client as a service. However I have not been > successful in setting it up. Although it does install as a service, when it is > started it immediatly stops as unable to authenticate with the other server. > If SSH is run manually there is no issue. Currently going through the logs > with verbose on and trying to determine what the issue is. If you don't provide --user to cygrunsrv it runs the service as the system account. You probably need to run it as your regular user account, so that your public keys in $HOME/.ssh/ are found, et cetera. I'm assuming you're using pubkey auth here, as password auth would present a problem for an automated service. Brian -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |