Skip to content

Instantly share code, notes, and snippets.

@mikechau
Created July 27, 2017 23:13
Show Gist options
  • Save mikechau/d8afbf0fb3c1ba51896737f52aac4b35 to your computer and use it in GitHub Desktop.
Save mikechau/d8afbf0fb3c1ba51896737f52aac4b35 to your computer and use it in GitHub Desktop.
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment