Created
November 26, 2019 09:45
-
-
Save v-thomp4/3a73143f82b8d76b647dc3af6961c25f to your computer and use it in GitHub Desktop.
Automatically restart SSH sessions and tunnels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autossh -M 0 -o "ServerAliveInterval 10" -o "ServerAliveCountMax 2" -L 9999:localhost:9999 user@server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment