Created
April 6, 2020 16:56
-
-
Save tjovicic/7e2700e47e061e4d052d64444213d66b to your computer and use it in GitHub Desktop.
AWS EC2 - RDS port forwarding
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
1. Set "AllowTcpForwarding yes" in /etc/ssh/sshd_config on EC2 instance | |
2. sudo ssh -i "bastion.pem" -N -L 3307:mydatabase.abc123.eu-central-1.rds.amazonaws.com:3306 [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment