delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/02/22:34:32

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=LOqGJk+VHvyUkTis
zC3ut8b1isrChLAtoIAr2Rdtu/l8rCn8N3mV6ew7XExAz2Xn2k5dciaWK4UJcgbY
ts+xrQcPXEl/EQkyVnWGbtzDs8CLcdovZ0fx/peA2pNaeqXy3zqQQNVSVcWwzL9Y
ZGIToD6PLc7r5Sn2UHxt9V6rltQ=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=oMqpBNPNR/OcdF+1lVKPcu
RlKOk=; b=NoVQszQ2L8roSfJa0B4ZrprFFH5Yn6hKm+mdC6/5Y488HAu5DTkXsq
IA7UACOqQdyYY2tEHyu855eZMysI8owG8oBgiyN77ST78npoSIY2OcTajNoZb+VR
3hI+6oxNfFcwxaNYVCEFX+n6AqKtO5+IX6RcLq7IWLetevWXoak4k=
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=1.6 required=5.0 tests=AWL,BAYES_50,SPF_NEUTRAL autolearn=no version=3.3.2 spammy=alarm, Games, games, restart
X-HELO: germ.lanvaux.fr
Subject: Re: AutoSSH problem
To: cygwin AT cygwin DOT com, =?UTF-8?Q?Ren=c3=a9_Berber?= <rene DOT berber AT gmail DOT com>
References: <1527971948 DOT 18809 DOT ezmlm AT cygwin DOT com>
From: Germain Le Chapelain <german AT lanvaux DOT fr>
Message-ID: <41cd0c5f-4819-0c14-dde5-a1bea7a1030a@lanvaux.fr>
Date: Sat, 2 Jun 2018 19:30:23 +0000
User-Agent: Mozilla/5.0 (X11; NetBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <1527971948.18809.ezmlm@cygwin.com>

On 06/01/18 23:03, René Berber wrote:
> The behavior looks normal.
>
> Quoting from the autossh man page:
>
> "Startup behaviour
>
> If the ssh session fails with an exit status of 1 on the very first try,
> autossh
>
> 1.' will assume that there is some problem with syntax or the connection
> setup, and will exit rather than retrying;
>
> 2.' There is a "starting gate" time. If the first ssh process fails
> within the first few seconds of being started, autossh assumes that it
> never made it "out of the starting gate", and exits. This is to handle
> initial failed authentication, connection, etc. This time is 30 seconds
> by default, and can be adjusted (see the AUTOSSH_GATETIME environment
> variable below). If AUTOSSH_GATETIME is set to 0, then both behaviours
> are disabled: there is no "starting gate", and autossh will restart even
> if ssh fails on the first run with an exit status of 1. The "starting
> gate" time is also set to 0 when the -f flag to autossh is used. "

Thank you for highlighting this point, René.

You are right: it "looks" normal, from far :)

However, looking closer to the log, you should see (or not, looking back 
at it it's not obvious) that I halted the connection the server about 
three minutes in:

> 2018/06/01 13:17:41 autossh[20680]: set alarm for 600 secs
> Connection to lanvaux.fr closed by remote host.
> 2018/06/01 13:20:52 autossh[20680]: check on child 4988

So something still doesn't line up. :/

I may try my dumpo-magic (I think it's actually called "DebugDiag", 
https://blogs.msdn.microsoft.com/chaun/2013/11/12/steps-to-catch-a-simple-crash-dump-of-a-crashing-process/)

But as said earlier it's probably going to poop (no pun intended) about 
AutoSSH being a cygwin program.


I will take a read on how debugging goes on Cygwin, or look at AutoSSH 
1.4e (and how to get it.)


Kindest regards,

Thank you for your answer!


-- 
Germain Le Chapelain
Lanvaux Computer Games Limited
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