Created
May 2, 2017 18:53
-
-
Save mateobur/748ea5f91e396cdf231fd9a8767c1f80 to your computer and use it in GitHub Desktop.
autossh ubuntu systemd
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
[Unit] | |
Description=Autossh Tunnel | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
User=<user> | |
Type=simple | |
ExecStart=/usr/bin/autossh -M 20000 -N <host> -R 0.0.0.0:30000:localhost:22 | |
Restart=always | |
RestartSec=60s | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Autossh tunnel for ubuntu
autossh
packagessh-copy-id