Created
April 22, 2020 09:04
-
-
Save AlekseyArh/2ed0283fdf8baa800557b52c4ee9532b to your computer and use it in GitHub Desktop.
ssh туннель для mysql
This file contains 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
# Создание туннеля | |
ssh -f -N -L 10006:127.0.0.1:3306 user@domain | |
# Подключение к базе | |
mysql -h 127.0.0.1 --port 10006 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment