From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10947 invoked by alias); 1 Jun 2018 23:03:44 -0000 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 Received: (qmail 10909 invoked by uid 89); 1 Jun 2018 23:03:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.1 required=5.0 tests=BAYES_50,FORGED_MUA_MOZILLA,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=autossh, AutoSSH, Startup, sk:AUTOSSH X-HELO: blaine.gmane.org Received: from Unknown (HELO blaine.gmane.org) (195.159.176.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 Jun 2018 23:03:40 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fOt30-0008Uk-AC for cygwin@cygwin.com; Sat, 02 Jun 2018 01:01:26 +0200 To: cygwin@cygwin.com From: =?UTF-8?Q?Ren=c3=a9_Berber?= Subject: Re: AutoSSH problem Date: Fri, 01 Jun 2018 23:03:00 -0000 Message-ID: References: <1527847720.60014.ezmlm@cygwin.com> <46b2d965-0adb-69dc-8e4d-07647c0da882@lanvaux.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0 Openpgp: preference=signencrypt In-Reply-To: <46b2d965-0adb-69dc-8e4d-07647c0da882@lanvaux.fr> X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00006.txt.bz2 On 6/1/2018 10:31 AM, Germain Le Chapelain : 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. " -- R. Berber -- 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