Skip to content

Instantly share code, notes, and snippets.

@paneru-rajan
Created October 17, 2019 05:05
Show Gist options
  • Save paneru-rajan/2c1f08458d0f4c6aaa0b3cabef247ef1 to your computer and use it in GitHub Desktop.
Save paneru-rajan/2c1f08458d0f4c6aaa0b3cabef247ef1 to your computer and use it in GitHub Desktop.
[Use SSH tunnel to login into DB] You can use tunnel form cli to login to dbs #login-mysql #login-using-tunnel #mysql #tunnel
# you need to have mysql-client in your local
ssh -f rane-bastion-api -L 3307:db-host:3306 -N
mysql -u rajan_p -h 127.0.0.1 -P 3307 -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment