Created
May 3, 2019 14:59
-
-
Save cpswan/f06ea6eb399ff6fe119248734201a346 to your computer and use it in GitHub Desktop.
systemd service description for autossh tunnel within a screen
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 in a screen | |
After=network-online.target | |
[Service] | |
User=changeme | |
Type=simple | |
Restart=on-failure | |
RestartSec=3 | |
ExecStart=/usr/bin/screen -DmS tunnel1 /usr/lib/autossh/autossh -M 20020 -D 0.0.0.0:12345 [email protected] | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment