Skip to content

Instantly share code, notes, and snippets.

@jh00nbr
Created April 6, 2021 17:03
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 jh00nbr/0fc021dad7ce9183edbd2593aa828d06 to your computer and use it in GitHub Desktop.
Save jh00nbr/0fc021dad7ce9183edbd2593aa828d06 to your computer and use it in GitHub Desktop.
AUTOSSH TUNNEL BASE
[Unit]
Description=AutoSSH tunnel Check
After=network.target
[Service]
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -o "ServerAliveInterval 10" -o "ServerAliveCountMax 3" -N -R 6000:localhost:22 user@monitoring.com
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment