Created
October 26, 2017 08:42
-
-
Save Gnnng/c8d3f8fe8264a62ab141df47759068c6 to your computer and use it in GitHub Desktop.
A systemd service template for reverse proxy using autossh
This file contains 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 daemon for remote-server | |
After=network.target | |
[Service] | |
User=gongdeli | |
ExecStart=/usr/bin/autossh -NR 62222:localhost:2222 remote-server | |
Restart=always | |
RestartSec=10 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment