I am looking for something like autossh, but for windows. I have had trouble setting up autossh with cygwin. I am tring MyEnTunnel now, but I was wondering if Windows hacks know of something better.
closed as off-topic by Michael Hampton♦ Mar 12 '18 at 21:39
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Requests for product, service, or learning material recommendations are off-topic because they attract low quality, opinionated and spam answers, and the answers become obsolete quickly. Instead, describe the business problem you are working on, the research you have done, and the steps taken so far to solve it." – Michael Hampton
locked by Michael Hampton♦ Mar 12 '18 at 21:39
This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.
Read more about locked posts here.
Is there particular reason it needs to be a SSH tunnel rather than a more general VPN? (i.e. you don't control the host and/or its firewall so can't install a VPN solution)
If not then perhaps using OpenVPN or similar would be more reliable for you - it deals with connection drops such that the streams operating through the link don't even notice.
If the problem is SSHd dropping your connection due to inactivity, try ensure both client and server have keep-alive packets enabled, and if that is not possible (or doesn't resolve the issue) have the SSH session that is running the tunnel regularly echo something back to the client (a loop of "output date with
sleep some seconds"). Though neither of these keep-alive solutions have any effect if your problem is due to a network issue like a complete connection drop.
I use Bitvise Tunnelier daily for a tunnel for synergy from my laptop to my desktop. It restarts fairly reliably when moving from network to network.
Here's an example shortcut target I use in my startup folder:
"C:\Program Files\Bitvise Tunnelier\Tunnelier.exe" -profile="C:\Users\username\My Documents\synergy-tunnel.tlp" -connectOnStartup -menu=small -exitOnDisconnect