Created
October 17, 2019 05:05
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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