From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13623 invoked by alias); 9 Jan 2009 00:29:07 -0000 Received: (qmail 13615 invoked by uid 22791); 9 Jan 2009 00:29:07 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Jan 2009 00:29:01 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LL5FD-0006uC-5J for cygwin@cygwin.com; Fri, 09 Jan 2009 00:28:59 +0000 Received: from 189.146.50.171 ([189.146.50.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jan 2009 00:28:59 +0000 Received: from r.berber by 189.146.50.171 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jan 2009 00:28:59 +0000 To: cygwin@cygwin.com From: =?ISO-8859-1?Q?Ren=E9_Berber?= Subject: Re: cygrunsrv autossh - tunnel does not come up Date: Fri, 09 Jan 2009 03:29:00 -0000 Message-ID: References: <21362436.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <21362436.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-01/txt/msg00208.txt.bz2 hooner wrote: > I have problems running autossh via cygrunsrv on WIN2003: >=20=20 > /bin/cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 20000 -g2CN -R > 20120:localhost:3389 -i /etc/key-rsa -p 20012 user@192.168.100.12" -e > AUTOSSH_NTSERVICE=3Dyes -y tcpip --type auto >=20 > As soon as I start the service (net start autossh) it stops. So it looks > like it never came up: > Autossh.log: > 2009/01/08 23:26:25 autossh[10148]: starting ssh (count 1) > 2009/01/08 23:26:25 autossh[10148]: ssh child pid is 9528 > Host key verification failed. > 2009/01/08 23:26:25 autossh[10148]: ssh exited prematurely with status 25= 5; > autossh exiting >=20 > Running just ssh or autossh the tunnel comes up and stays: > ssh: ssh -v -g2CN -R 20120:localhost:3389 -i /etc/key-rsa -p 20012 > user@192.168.100.12 > autossh: /bin/autossh -M 20000 -g2CN -R 20120:localhost:3389 -i /etc/key-= rsa > -p 20012 user@192.168.100.12 There's a big difference between running it as a service like you did, and running it as a user. First thing to try: run the service as your user, i.e. add --user to the service installation. And don't expect too much, I use it all the time and it works but it fails to start very often, I end up starting it manually. --=20 Ren=E9 Berber -- 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/