Created
August 24, 2011 17:04
-
-
Save rduarte/1168547 to your computer and use it in GitHub Desktop.
ssh tunnel
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
| # Como criar um tunel ssh | |
| $ ssh -N -L porta_local:host_destino:porta_destino user_ssh@host_ssh [-p porta_ssh] |
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
| # Exemplo de uso | |
| $ ssh -N -L 8080:twitter.com:80 deploy@ricardoduarte.com -p 2222 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Com isso, o endereço http://localhost:8080/ será um tunel seguro para http://twitter.com:80/.