{"id":38211,"date":"2021-08-18T12:30:00","date_gmt":"2021-08-18T17:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=38211"},"modified":"2022-06-03T03:31:34","modified_gmt":"2022-06-03T08:31:34","slug":"access-your-database-remotely-through-an-ssh-tunnel","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/access-your-database-remotely-through-an-ssh-tunnel\/","title":{"rendered":"Access Your Database Remotely Through an SSH Tunnel"},"content":{"rendered":"
<\/div>\n
\"access<\/figure>\n\n\n\n

Secure Shell or SSH is a client-server-based communication protocol that is used to connect securely from one machine to another. It uses a network port to create a connection session between the server that listens on the chosen port and the client which sends the SSH connection request on that port.<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

<\/p>\n\n\n\n

With this protocol, we can manage our servers and work on them remotely. For example, we can add\/edit\/delete the services running on the server using an SSH client like PuTTY or Terminal.<\/p>\n\n\n\n\n\n\n\n

SSH tunneling is also known as SSH port forwarding, which means we can route our traffic through SSH secure connection. It allows us to use the established SSH connection to set up a new “secure” connection from your computer to the remote server. There are three types of SSH port forwarding.<\/p>\n\n\n\n