How to connect to MySQL remotely with SSH PuTTY Tunnels: A step-by-step guide

Click for: original source

MySQL is a popular relational database management system to organize and store data. Depending on your specific use cases and preferences, you can connect to a MySQL Server through a command-line interface, using GUI tools,such as dbForge Studio for MySQL, programming languages or via web-based interfaces such as phpMyAdmin. By Julia Evans.

In this article, we’ll give a brief overview of SSH protocol and tunnel, as well as explore how to connect to a MySQL server remotely using the SSH tunnel created with the help of PuTTY, a popular Windows SSH client. Further in the article:

  • Introduction to SSH tunnel
  • What is PuTTY?
  • PuTTY: Pros and Cons
  • Advantages of MySQL secure connection
  • How to access a MySQL server remotely by creating an SSH tunnel with PuTTY
  • How to connect to the MySQL server through PuTTY using dbForge Studio for MySQL
  • Method 1: Connect to the MySQL server through the password authentication
  • Method 2: Connect to the MySQL server using the Plink command-line interface
  • Benefits of using a GUI tool to connect to MySQL

The SSH protocol operates on the client-server model, which means that the connection to the SSH server is created by the SSH client directly without being intercepted by third parties. The protocol uses authentication to enable communication between two remote systems – host and client – through a secure encrypted channel. The host is the remote server to access, while the client is the computer to be used to access the host.

To sum it up, connecting to a remote MySQL server through an SSH tunnel is a secure and reliable way to access your database and ensure the safety of your data to transmit. Good read!

[Read More]

Tags infosec cloud devops database servers