ssh tunneling
ssh -f -N -L 9906:127.0.0.1:3306 user@database.example.com
Host tunnel HostName database.example.comm IdentityFile ~/.ssh/id_rsa LocalForward 9906 127.0.0.1:3306 User root
$ ssh -f -N tunnel
27 декабря 2018, 17:18
ssh -f -N -L 9906:127.0.0.1:3306 user@database.example.com
Host tunnel HostName database.example.comm IdentityFile ~/.ssh/id_rsa LocalForward 9906 127.0.0.1:3306 User root
$ ssh -f -N tunnel
sudo ssh -N -D 999 user_name@server_address