Skip to content

Instantly share code, notes, and snippets.

@ddm
Created August 31, 2017 19:28
Show Gist options
  • Save ddm/bbf53359b58a78e27544667f40ef548e to your computer and use it in GitHub Desktop.
Save ddm/bbf53359b58a78e27544667f40ef548e to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
/usr/bin/screen -S reverse-ssh-tunnel -d -m /usr/bin/autossh -M 65500 -o "ServerAliveInterval 20" -R 2222:localhost:22 server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment