I need to access a MySQL database on a remote server at my lab. The server is only accessible once I log in to a gateway server on the remote network:
local serv
Using the tunnel:
ssh -f user@gateway -L 3307:1.2.3.4:3306 -N
you will be able to connect to the database on localhost port 3307