Skip to content

Instantly share code, notes, and snippets.

@ekiara
Created April 18, 2014 02:34
Show Gist options
  • Save ekiara/11021941 to your computer and use it in GitHub Desktop.
Save ekiara/11021941 to your computer and use it in GitHub Desktop.
HOW TO DO A REVERSE SSH TUNNEL CONNECTION
# HOW TO DO A REVERSE SSH TUNNEL CONNECTION
# how_to_do_a_reverse_ssh_tunnel_connection.txt
$ ssh -i ./cloud.key -p [CLOUD_SERVER_SSH_PORT] -R [TUNNEL_PORT]:localhost:[LOCAL_SSH_PORT] user@[CLOUD_SERVER]
$ /usr/bin/ssh -i ./cloud.key -p 22 -R 6543:localhost:22 user@hostname.cloud.vps.provider.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment