Skip to content

Instantly share code, notes, and snippets.

@nhooyr
Created January 19, 2016 03:37
Show Gist options
  • Save nhooyr/c003d6c3466171d48beb to your computer and use it in GitHub Desktop.
Save nhooyr/c003d6c3466171d48beb to your computer and use it in GitHub Desktop.
[Unit]
Description=reverse ssh tunnel for ezekiel
Requires=network-online.target
After=network-online.target
[Service]
User=nhooyr
ExecStart=/usr/bin/autossh -M 0 -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -NTC -R 10900:localhost:18187 ezekiel
RestartSec=3
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment