We're a place where coders share, stay up-to-date and grow their careers.
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
To make this further simpler, we can add these settings to ssh/config file like this
Usage : ssh rds_ShortName -Nv