DEV Community

Discussion on: Connecting on RDS Server that is not publicly accessible

Collapse
 
nirmal_kumar profile image
Nirmal • Edited

To make this further simpler, we can add these settings to ssh/config file like this


Host rds_ShortName
HostName ec2-hostname
User ec2-user
IdentitiesOnly yes
IdentityFile ~/.key.pem
LocalForward 3306 rds-host:3306

Usage : ssh rds_ShortName -Nv