Skip to content

Instantly share code, notes, and snippets.

@nna774
Created October 26, 2016 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nna774/1d5e8683440b4cdca86c9df837bd060a to your computer and use it in GitHub Desktop.
Save nna774/1d5e8683440b4cdca86c9df837bd060a to your computer and use it in GitHub Desktop.
[Unit]
Description=AutoSSH service
After=network.target
[Service]
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -M 0 -NL 2525:localhost:25 -o TCPKeepAlive=yes nona@sakura.nna774.net -i /root/.ssh/autossh-sakura
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment