Create a ssh tunnel 22.03.2018 14.11.2025 linux shell ssh #ssh -f user@remotehost -L localport:127.0.0.1:remoteport -N $ ssh -f root@database -L 3307:127.0.0.1:3306 -N Now it is possible to connect to a remote mysql database via the tunnel.