Skip to main content

How to connect the database with SSH tunnel

For development purposes, we provide SSH access to our MySQL server from the Plus hosting package.

To create a connection, you must create an an SSH key pair  on the cPanel interface. Then we can use PuTTY to connect to SSH through the SSH protocol, but the tuner must be set before the connection.

To do this, follow these steps:

  1. In the left part of the window, select select Connection/SSH  and within the the Tunnels  section.
  2. In the the Add new forwarded port  section, in the the Source port  field, enter enter 3306  port number. For For Destination, enter enter localhost:3306, and then click click Add.
  3. After entering the data, click the the Open  button. In the window that appears, enter your storage ID and the SSH key password.

With these settings, you can see your databases connected to the localhost: 3306 port, as long as the connection established with PuTTY is not disconnected.