delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/08/18:07:26

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.9 required=5.0 tests=BAYES_20,DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG
X-Spam-Check-By: sourceware.org
Message-ID: <21362436.post@talk.nabble.com>
Date: Thu, 8 Jan 2009 15:07:08 -0800 (PST)
From: hooner <heiko_newsletter AT freenet DOT de>
To: cygwin AT cygwin DOT com
Subject: cygrunsrv autossh - tunnel does not come up
MIME-Version: 1.0
X-IsSubscribed: yes
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

I have problems running autossh via cygrunsrv on WIN2003:
 
/bin/cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 20000 -g2CN -R
20120:localhost:3389 -i /etc/key-rsa -p 20012 user AT 192 DOT 168 DOT 100 DOT 12" -e
AUTOSSH_NTSERVICE=yes -y tcpip --type auto

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 255;
autossh exiting

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 AT 192 DOT 168 DOT 100 DOT 12
autossh: /bin/autossh -M 20000 -g2CN -R 20120:localhost:3389 -i /etc/key-rsa
-p 20012 user AT 192 DOT 168 DOT 100 DOT 12

I also tried to use standard 22; no changes then. 

thx for looking into this
H.
-- 
View this message in context: http://www.nabble.com/cygrunsrv-autossh---tunnel-does-not-come-up-tp21362436p21362436.html
Sent from the Cygwin list mailing list archive at Nabble.com.


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