Database via SSH tunnel - markhowellsmead/helpers GitHub Wiki
ssh -f user@server -L 2000:localhost:3306 -N
Then you can connect to the remote (localhost-only) database as localhost via port 2000.
ssh -f user@server -L 2000:localhost:3306 -N
Then you can connect to the remote (localhost-only) database as localhost via port 2000.