ppk on both my machines and I can connect to all my servers from both machines - only the forwarding does not work on the desktop machine. The -L flag indicates we're starting a local port forwarding. All of the above use cases can be solved with a single ssh command: ssh -L localaddr:localport:remoteaddr:remoteport usersshdaddr. Because the RDP 6+ client in Windows has issues with the loopback to TCP Port 3390, you need to use a different port. Accessing a container's port from your laptop without publishing it on the server's public interface. Under Source port, add your local IP address and port. This is where we can set up an SSH tunnel for Remote Desktop. InterfaceAlias : Loopback Pseudo-Interface 1 In the PuTTY Reconfiguration screen, go to Connection SSH Tunnels. Test-NetConnection -ComputerName 127.0.0.1 -Port 49900 I've tried testing the port in Powershell on Windows 10 (below), as well as on two other servers (none of them works, including forwarding web ports): When trying the same thing on my desktop (W10 Pro v1909), Workbench errors with Unable to connect to 127.0.0.1:49900 I have an identical setup on my laptop (W10 Enterprise v1809) and it works fine, with both the PuTTY and Workbench configs exported from my laptop. With the plink.exe, you use the same arguments as with the OpenSSH ssh, except for the -f, which does not have an equivalent in Windows. In Workbench, I try to connect to localhost on port 49900 after establishing the SSH connection through PuTTY, but it fails to connect: Unable to connect to 127.0.0.1:49900 With the PuTTY suite, you can set up a tunnel either using the PuTTY itself (GUI) or using the command-line tool plink.exe. The SSH session will now include a secure SSH tunnel between the two specified ports. Click the Open button to open an SSH session to the server. In the Session section, save your changes by clicking the Save button. I set up an SSH session on port 22 to the server, then under SSH > Tunnels, I forward local port 49900 to the remote server's 3306 ( L49900 remoteserverip:3306). An example of configuring an SSH tunnel between remote port 80 and local port 8888 is displayed below.I'm trying to set up an SSH tunnel in PuTTY to connect to a RHEL server's database using MySQL Workbench over SSH.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |