Last active
September 21, 2023 04:38
-
-
Save zhanglintc/178dfca85040524107474cbac0febb22 to your computer and use it in GitHub Desktop.
Reverse Proxy (autossh)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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