rds-ssh-tunnel
ssh tunnel 設定的參考
ssh -i <identity_file> -f -l <bastion-host-username> -L <local-port-you-connect-to>:<rds-endpoint>:<rds:listening-port> <bastion-host-public-ip> -v
- Example Command
ssh -i "private_key.pem" -f -l ec2-user -L 5432:172.31.39.62:5432 3.133.141.189 -v
Reference
- Connect to an Amazon RDS DB instance using a bastion host from a Linux machine
- 有成功使用 Syntax 1 的方式連
- Using a Jump host to access an RDS database in a private subnet
- Simplify your day with SSH config file entries and self closing tunnels
- 原本想說直接設定在 ssh config 就好,不過,試的過程有遇到問題,還試不出來