Created
November 7, 2017 20:48
-
-
Save abelardojarab/2e3fbfed79dcf59c6de18e320cc93e80 to your computer and use it in GitHub Desktop.
SSH port forwarding to remote machine
This file contains 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
#!/bin/bash | |
autossh -M 20000 -R 9922:localhost:22 -R 9989:localhost:5900 -R 9991:cpt-swdev1:5901 -R 9992:cpt-swdev1:5902 -R 8822:cpt-swdev1:22 ubuntu01 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment