To get your Linode’s fingerprint, log in to your Linode via the Lish console (see the Console tab in the Linode Manager) and executing the following command: ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub To verify the server, compare the key fingerprint shown in the PuTTY warning - the string of numbers and letters starting with ssh-rsa in the image above - with your Linode’s public key fingerprint. It is unlikely, but possible, that someone could be eavesdropping on your connection and posing as your Linode. This warning appears because PuTTY wants you to verify that the server you’re logging in to is who it says it is. Verify that this server is the one to which you want to connect, then click Yes: If you haven’t logged in to this system with PuTTY before, you will receive a warning similar to the following. In the left-hand menu, go to Connection -> SSH -> Tunnels. You will see the following window:Įnter the hostname or IP address of your Linode in the Host Name (or IP address) field. Setting Up the Tunnelįirst, you need to establish a basic connection to your Linode:ĭouble-click the PuTTY file to begin - no need to install. This section will show you how to create an SSH tunnel to MySQL on Windows, using the PuTTY tool. How to Access MySQL Remotely by Creating an SSH Tunnel with PuTTY MySQL is configured to listen on localhost (127.0.0.1).Although this guide refers to MySQL, it applies equally to MariaDB as well. Now, in order to access the internal website from a remote SSH server, just type the address the browser.MariaDB is a fork of MySQL and considered a drop-in replacement. To create a reverse tunnel, use the following command: For example, you want an external server (192.168.1.90) to access your Intranet site (not published on the Internet). You can allow a remote server to access a local port on your computer or a port on another computer on your local network through an SSH tunnel. There is another SSH tunnel use case - remote TCP forwarding. Remote TCP Forwarding (Reverse SSH) to a Local Computer Now you can start the saved SSH tunnel in Putty directly from the Windows 10 taskbar.Specify the session name in the Saved Session field and click Save Return to the Session tab, specify the name or IP address of the remote SSH host and the connection port number (22 by default).To avoid opening a remote host shell when connecting through a tunnel, enable the Don’t start a shell or command at all option in the SSH section. Select Local destination and click Add.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |