Created
May 9, 2012 02:15
-
-
Save mylesmegyesi/2641253 to your computer and use it in GitHub Desktop.
Pair with ssh reverse tunneling
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
# Set up aws server to use as ssh proxy | |
# open /etc/ssh/sshd_config with sudo | |
# add 'GatewayPorts yes' anywhere | |
# restart server | |
# server: ec2-23-22-46-142.compute-1.amazonaws.com | |
# server port: 12345 | |
# server user: ubuntu | |
# host port: 2222 | |
# On host machine | |
ssh -nNTR 12345:localhost:2222 ubuntu@ec2-23-22-46-142.compute-1.amazonaws.com | |
# On clients | |
ssh vagrant@ec2-23-22-46-142.compute-1.amazonaws.com -p 12345 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is totally public