Skip to content

Instantly share code, notes, and snippets.

@abelardojarab
Created November 7, 2017 20:48
Show Gist options
  • Save abelardojarab/2e3fbfed79dcf59c6de18e320cc93e80 to your computer and use it in GitHub Desktop.
Save abelardojarab/2e3fbfed79dcf59c6de18e320cc93e80 to your computer and use it in GitHub Desktop.
SSH port forwarding to remote machine
#!/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