X-Spam-Check-By: sourceware.org Message-ID: <46B3562C.821CE652@dessent.net> Date: Fri, 03 Aug 2007 09:22:04 -0700 From: Brian Dessent 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: <46B0178A DOT 5887EC7F AT dessent DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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/