Web lists-archives.com

AutoSSH problem




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@xxxxxxxxxx" -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