Tunneling Cheatsheet
Tunneling Cheatsheet
- Example 1:
1 2
ssh ec2-user@ec2-XX-XXX-XX-XXX.compute-1.amazonaws.com -i /user/home/mykeys/ec2key-us-east-1.pem \ -L5901:localhost:5901 -nNT
- Example 2:
1 2
ec2-user@XX.XXX.XXX.XX -i /user/home/mykeys/ec2key-us-east-1.pem \ -L5901:localhost:5901 -nNT
- Example 3:
1
ssh -L 5901:localhost:5901 -i /user/home/mykeys/ec2key-us-east-1.pem ssh ec2-user@ec2-XX-XXX-XX-XXX.compute-1.amazonaws.com
- Example 4:
1
ssh -L 5901:localhost:5901 -i /user/home/mykeys/ec2key-us-east-1.pem ec2-user@XX.XXX.XXX.XX
- Tunneling Redshift:
1 2
ssh ec2-user@XX.XXX.XXX.XX.us-east1.amazonaws.com -i /user/home/mykeys/ec2key-us-east-1.pem \ -L5439:cluster.cmj39df3f.us-east-1.redshift.amazonaws.com:5439 -nNT
This post is licensed under CC BY 4.0 by the author.