From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77934 invoked by alias); 31 May 2018 08:58:21 -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 77852 invoked by uid 89); 31 May 2018 08:58:20 -0000 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 Received: from germ.lanvaux.fr (HELO germ.lanvaux.fr) (184.68.159.242) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 31 May 2018 08:58:19 +0000 Received: from [IPv6:::1] (localhost [IPv6:::1]) by germ.lanvaux.fr (Postfix) with ESMTP id A98899001E4 for ; Thu, 31 May 2018 01:56:44 +0000 (UTC) To: cygwin@cygwin.com From: Germain Le Chapelain Subject: AutoSSH problem Message-ID: <1fd63f27-9d18-446c-24a4-326b09998c08@lanvaux.fr> Date: Thu, 31 May 2018 12:16:00 -0000 User-Agent: Mozilla/5.0 (X11; NetBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2018-05/txt/msg00331.txt.bz2 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@lanvaux.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