# Terminal 1
sshuttle -r $BASTION_NAME 172.31.0.0/16
# Terminal 2
ssh -L3306:$RDS_HOST_NAME:3306 ec2-user@$INSTANCE_IP -i $PEM
# Terminal 3
mysql -h 127.0.0.1 -u $SQL_USER -p $DATABASE -P 3306
Created
July 27, 2017 23:13
-
-
Save mikechau/d8afbf0fb3c1ba51896737f52aac4b35 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment