Created
March 15, 2018 15:03
-
-
Save jazzytomato/a0b14b6961551a8fb1635314451398a7 to your computer and use it in GitHub Desktop.
SSH Local tunneling
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
# Local tunnel to connect to remote DB via bastion ec2 instance | |
ssh -N -L 5433:DBHOSTNAME.eu-west-1.rds.amazonaws.com:5432 [email protected] | |
# then connects to db locally with localhost:5433 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment