Remember to replace SOURCE-PORT with the source port, DESTINATION-PORT with the destination port, KEYFILE with the path to your private key, and SERVER-IP with the public IP address or hostname of your server: $ ssh -N -L SOURCE-PORT:127.0.0.1:DESTINATION-PORT -i KEYFILE If successful, the above command will create an SSH tunnel but will not display any output on the server console. Run the following command to configure the SSH tunnel. To access the server on a specific port using an SSH tunnel, you need to have the following information: Open a new terminal window on your local system (for example, using “Finder -> Applications -> Utilities -> Terminal” in Mac OS X or the Dash in Ubuntu). To access the server on a specific port using an SSH tunnel, follow the steps below. Access a server using an SSH tunnel on Linux and Mac OS X While the tunnel is active, you should be able to access the application through the secure SSH tunnel you created, by browsing to or Remember to replace SOURCE-PORT with the source port number specified. The SSH session will now include a secure SSH tunnel between the two specified ports. In the “Session” section, save your changes by clicking the “Save” button.Ĭlick the “Open” button to open an SSH session to the server. An example of configuring an SSH tunnel between remote port 80 and local port 8888 is displayed below. (You’ll see the added port in the list of “Forwarded ports”). An example of configuring an SSH tunnel between remote port 80 and local port 8888 is displayed below.Ĭlick the “Add” button to add the secure tunnel configuration to the session. In the “Connection -> SSH -> Tunnels” section, create a secure tunnel by forwarding a port (the “destination port”) on the remote server to a port (the “source port”) on the local host (127.0.0.1 or localhost). Once you have your SSH client correctly configured and you tested that you can successfully access to your instance via SSH, you need to create an SSH tunnel. Learn how to connect to the server through SSH using an SSH client on Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |