Skip to content

Instantly share code, notes, and snippets.

@niofis
Last active December 22, 2017 22:50
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 niofis/a1407f7755b76d13d360 to your computer and use it in GitHub Desktop.
Save niofis/a1407f7755b76d13d360 to your computer and use it in GitHub Desktop.
#!/bin/sh
/usr/bin/autossh -N -f -M 50011 -oPubkeyAuthentication=yes -oPasswordAuthentication=no -oLogLevel=error -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no -i <home>/.ssh/id_rsa -R 50010:0.0.0.0:22 user@server.com -p 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment