Created
October 26, 2017 08:42
-
-
Save Gnnng/c8d3f8fe8264a62ab141df47759068c6 to your computer and use it in GitHub Desktop.
Revisions
-
Gnnng created this gist
Oct 26, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ [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