Skip to content

Instantly share code, notes, and snippets.

@rduarte
Created August 24, 2011 17:04
Show Gist options
  • Select an option

  • Save rduarte/1168547 to your computer and use it in GitHub Desktop.

Select an option

Save rduarte/1168547 to your computer and use it in GitHub Desktop.
ssh tunnel
# Como criar um tunel ssh
$ ssh -N -L porta_local:host_destino:porta_destino user_ssh@host_ssh [-p porta_ssh]
# Exemplo de uso
$ ssh -N -L 8080:twitter.com:80 deploy@ricardoduarte.com -p 2222
@rduarte

rduarte commented Aug 24, 2011

Copy link
Copy Markdown
Author

Com isso, o endereço http://localhost:8080/ será um tunel seguro para http://twitter.com:80/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment