delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/05/31/04:58:33

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=DOc
JAsBl3AmqIXEvOx/R3VDV2/SdAwXX+7rY0a8RQD4h+fipWJ4RDM7Kc0+9RoKgS6+
yodgrdSPIjECBVLq7JOlj5pn16rU/iHTkxy6yxhuXa44LdM+weHxj2I8vMzQMcmv
dofWwiiZRi38Czec4JSNIDAFNFIA/T/c9XOHijBE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=I83gHIWxS
XSGdICMlpjdWWSXPB4=; b=NZLibXaKmvS+K1PjOBsf4xgkECNiORSkpL1/4ksut
Ucp3z+FtjTogTZU3mv9JiIK56Evi1GZ0tG4cupgER5iVpmBA2NVhegSRMKI6Vf43
Qxkpc9xuK4jiu7O0S9ZmiPBXXHaniyrklLmVdrslNadherfNRoVKD9rVapU1ckPI
T0=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL autolearn=no version=3.3.2 spammy=H*F:D*fr, repair, 8336, experiencing
X-HELO: germ.lanvaux.fr
To: cygwin AT cygwin DOT com
From: Germain Le Chapelain <german AT lanvaux DOT fr>
Subject: AutoSSH problem
Message-ID: <1fd63f27-9d18-446c-24a4-326b09998c08@lanvaux.fr>
Date: Thu, 31 May 2018 01:56:43 +0000
User-Agent: Mozilla/5.0 (X11; NetBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0

Hi,


I am experiencing troubles trying to set up a reverse SSH tunnel:

I have installed AutoSSH as such:

cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 20000 -R 
*:5900:localhost:5900 SMI AT lanvaux DOT fr" -y tcpip --type auto -e 
AUTOSSH_NTSERVICE=yes


Now, it works great, except if the ssh service at lanvaux.fr would 
become unavailable.

In this case, the service stops.


In the log viewer, I only get the following message in the system log:

The description for Event ID 0 from source AutoSSH cannot be found. 
Either the component that raises this event is not installed on your 
local computer or the installation is corrupted. You can install or 
repair the component on the local computer.

If the event originated on another computer, the display information had 
to be saved with the event.

The following information was included with the event:

AutoSSH: PID 8336: service `AutoSSH' failed: signal 14 raised


and in autoSSH.log:


ssh: connect to host lanvaux.fr port 22: Connection timed out
2018/05/29 10:39:39 autossh[8424]: ssh exited with error status 255; 
restarting ssh
2018/05/29 10:40:29 autossh[8424]: starting ssh (count 12)
2018/05/29 10:40:29 autossh[8424]: ssh child pid is 14616
ssh: connect to host lanvaux.fr port 22: Connection timed out
2018/05/29 10:40:50 autossh[8424]: ssh exited with error status 255; 
restarting ssh
2018/05/29 10:42:02 autossh[8424]: starting ssh (count 13)
2018/05/29 10:42:02 autossh[8424]: ssh child pid is 20004
ssh: connect to host lanvaux.fr port 22: Connection timed out
2018/05/29 10:42:23 autossh[8424]: ssh exited with error status 255; 
restarting ssh
2018/05/29 10:44:01 autossh[8424]: starting ssh (count 14)
2018/05/29 10:44:01 autossh[8424]: ssh child pid is 3056
ssh: connect to host lanvaux.fr port 22: Connection timed out
2018/05/29 10:44:22 autossh[8424]: ssh exited with error status 255; 
restarting ssh
2018/05/29 16:43:41 autossh[17172]: starting ssh (count 1)

(16:43:41 is when we manually restarted the service.)


 From reading the AutoSSH manpage, I was expecting ssh to always try to 
reconnect (except if it fails on the first try.)

When I noticed the first failure, I tried changing the service settings 
for AutoSSH to restart all the time, but that didn't do it.


Am I missing something regarding AutoSSH configuration?


It is AutoSSH 1.4f



Thank you very much!


Kind regards;

-- 
Germain Le Chapelain
http://lanvaux.fr


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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