3/15/2024 0 Comments How to ssh from mac to macI hope the two examples are clear, and now you know, why SSH tunnelling is needed. But because the DB server is accessible via the SSH server, we can set up an SSH tunnel with the SSH server to reach the DB server. Now, if you want to do something on the DB server, you won’t be able to do it directly. It is kept on the local network, which will be accessible via the SSH server. For security, the DB server is never exposed to the internet. Let’s take another example If we are using AWS service and we have two servers one is a DB server and another is the SSH server on which the Web Server is running. 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. If we have a database server, let’s say MySQL running on a remote server with some IP address and for which the port 3306. In this case, if you want to access the DB server from your local machine, you won’t be able to do it. Let’s take a simple example to understand this. 2.2 Connect to Destination server via Remote Server:Īn SSH tunnel or SSH port forwarding is a mechanism to establish a secure connection between a client machine and a server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |