


In such a scenario, we set up an SSH tunnel with the remote server, to securely connect to the local network of the remote server to access the 3306 port on the remote server. In this case, if you want to access the DB server from your local machine(connected to the internet), you won't be able to do it. If we have a database server, let's say MySQL running on a remote server with some IP address and for which the port number 3306 which is the default port for MySQL is only available on the local network of the remote server. Let's take a simple example to understand this. If you are a Windows user, I would recommend using Mobaxterm application for doing this.Īn SSH tunnel or SSH port forwarding is a mechanism to establish a secure connection between a client machine and a server. Yes, we do not have to install any other application for doing so, like we do in Windows. If you want to setup SSH tunnel with your remote server using your Macbook, you can easily do so using the default Terminal application available in the Mac OS.
