
To have TablePlus start the SSH Tunnel automatically, when setting up the connection, choose the Over SSH configuration near the bottom of the window. Read more on how SSH Tunnelling on other DB tool might leak your connection. That’s how you can secure your connection and protect your database. TablePlus has a built-in native SSH that allows you to set up and run SSH without using other tools to support.īecause ssh tunneling is a part of TablePlus, the application can control the number of connections through ssh. TablePlus only accepts connections from itself and prohibits connections from the outside. The good news is, with TablePlus, you don’t need PUTTY or any other SSH clients. On macOS and Linux, you can also use the built-in SSH client of the operating system to set up the SSH Tunnel, but that’s still an extra step. You download it to your computer, set up an SSH Tunnel from your local computer to your remote host, then direct your database client to the local SSH port. PUTTY is a popular SSH client, especially on Windows devices.
#Ssh tunnel mysql how to
How to set up an SSH Tunnel for the database connection? Any data transported between your local machine and the remote server will go through the SSH first, be encrypted, then passed to the other end securely.

When you connect to a remote database instance, a production database on AWS for example, an SSH Tunnel will link a port from your working computer to a port on your remote host and encrypt that connection. Using SSH Tunnel is a good security practice to prevent some bad hands from interfering your connection and doing harm to your database.


When accessing a remote database, your connection might be vulnerable to network attacks.
