The scenario:
- Connectivity to remote server (e.g. EC2 instance) over SSH.
- Connectivity to AWS RDS MySQL instance from remote server only (due to security group/firewall settings).
# forward requests from 127.0.0.1:6400 -> RDS.ENDPOINT.rds.amazonaws.com:3306
# add [-f] switch to background ssh process
$ ssh -vvvN \
-L 6400:RDS.ENDPOINT.rds.amazonaws.com:3306 \