Skip to content

Instantly share code, notes, and snippets.

@AlekseyArh
Created April 22, 2020 09:04
Show Gist options
  • Save AlekseyArh/2ed0283fdf8baa800557b52c4ee9532b to your computer and use it in GitHub Desktop.
Save AlekseyArh/2ed0283fdf8baa800557b52c4ee9532b to your computer and use it in GitHub Desktop.
ssh туннель для mysql
# Создание туннеля
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