Skip to content

Instantly share code, notes, and snippets.

@Zensey
Created October 2, 2016 22:49
Show Gist options
  • Save Zensey/8a59dfd11d6f8a1ef056110355eb7e36 to your computer and use it in GitHub Desktop.
Save Zensey/8a59dfd11d6f8a1ef056110355eb7e36 to your computer and use it in GitHub Desktop.
su - autossh -s /bin/sh -c "/usr/bin/autossh -M 0 -N -f -R 5001:localhost:22 remote@1.1.1.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment