Skip to content

Instantly share code, notes, and snippets.

@zhanglintc
Last active September 21, 2023 04:38
Show Gist options
  • Save zhanglintc/178dfca85040524107474cbac0febb22 to your computer and use it in GitHub Desktop.
Save zhanglintc/178dfca85040524107474cbac0febb22 to your computer and use it in GitHub Desktop.
Reverse Proxy (autossh)
sudo autossh -f -M 999 -N -o "PubkeyAuthentication=yes" -o "StrictHostKeyChecking=false" -o "PasswordAuthentication=no" -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -R 0.0.0.0:9091:localhost:9091 -i /home/lane/.ssh/id_rsa [email protected]
sudo autossh -f -M 888 -N -o "PubkeyAuthentication=yes" -o "StrictHostKeyChecking=false" -o "PasswordAuthentication=no" -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -R 0.0.0.0:2222:localhost:22 -i /home/lane/.ssh/id_rsa [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment