This is the mail archive of the
mailing list for the Cygwin project.
- From: Greg Freemyer <greg dot freemyer at gmail dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Mon, 4 Jun 2018 11:37:18 -0400
- Subject: AutoSSH problem
- References: <firstname.lastname@example.org>
On Thu, May 31, 2018, 4:58 AM Germain Le Chapelain <email@example.com> wrote:
> 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
> Now, it works great, except if the ssh service at lanvaux.fr would
> become unavailable.
> In this case, the service stops.
If you're still having problems:
I've had it working for about 4 years. I've set it up on at least 4
different windows PCs. WIN7 and WIN10.
I changed jobs 6 months ago so I no longer have access to any of the computers.
But I did write-up my notes as a blog post:
Key section of the write-up for your issue assuming your SSHD server is Linux:
4) Tweak the sshd_config on the server
By default openSUSE enables “AllowTcpForwarding” and “TCPKeepAlive”.
Verify they are either commented out or set to “yes” in
Set “GatewayPorts yes” and “ClientAliveInterval 300” in /etc/ssh/sshd_config.
Also make sure they are not commented out.
restart sshd to get the config values to be re-read: sudo systemctl
Maybe that will help.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple