ssh
bastion server를 이용 하여 DB 접속 하는 설정
ssh -i ~/.ssh/kth.pem -fNL (localhost생략)3306:kth-rds-writer.cds4.ap-northeast-2.rds.amazonaws.com:3306 ec2-user@52.79.xxx.xxxHost pdb-proxy
HostName 52.79.xxx.xxx
User ec2-user
IdentityFile ~/.ssh/kth.pem
LocalForward 3306 kth-rds-writer.cd.ap-northeast-2.rds.amazonaws.com:3306
ExitOnForwardFailure yes
ServerAliveInterval 600ssh -fN pdb-proxy Last updated