This is the mail archive of the
cygwin
mailing list for the Cygwin project.
AutoSSH problem
- 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: <1fd63f27-9d18-446c-24a4-326b09998c08@lanvaux.fr>
On Thu, May 31, 2018, 4:58 AM Germain Le Chapelain <german@lanvaux.fr> wrote:
>
> 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.
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:
https://lizards.opensuse.org/2015/04/20/using-opensuse-as-a-reverse-tunnel-site-for-windows-7-remote-desktop/
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
/etc/ssh/sshd_config
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
restart sshd.service
===
Maybe that will help.
Greg
--
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