Skip to content

Instantly share code, notes, and snippets.

@xen0bit
Created August 29, 2020 19:17
Show Gist options
  • Save xen0bit/ab5a0f7375df900354db05c4228bf108 to your computer and use it in GitHub Desktop.
Save xen0bit/ab5a0f7375df900354db05c4228bf108 to your computer and use it in GitHub Desktop.
/usr/bin/autossh -M 0 -N \
-o "ServerAliveInterval 15" -o "ServerAliveCountMax 3" -o "ConnectTimeout 10" -o "ExitOnForwardFailure yes" \
-i /home/user/.ssh/id_rsa -p 22 user@VPS-IP-Address \
-R 8080:localhost:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment