In the Source port field, put a port number that will be opened on the system on which you are running PuTTY, i.e., the "local" end of the tunnel. To test if X forwarding is working, try running xclock; on the command line, enter: xclock. To use SSH with X forwarding in PuTTY for Windows: Launch your X server application (for example, Xming). This gives you the ability to connect to any machine and port that the remote machine has access to. I found the solution in a hypernode-vagrant issue: VirtualBox fails to establish the port forwarding for SSH on Vagrant's standard port 2222, but higher ports work.In that issue, ports >= 4000 worked, whereas ports <= 3500 would fail. Forward all traffic made to port 2000 to port 3389 on my-computer.corp.example.com; Do the forwarding through my-jumpbox.westus2.cloudapp.azure.com, using the login name of azureuser; Use compression on the data sent over ssh; ssh -fNTC -L 127.0.0.1:20000:my-computer.corp.example.com:3389 [email protected] Tunnel opened!
Furthermore, a few Windows system drivers need to be tweaked. – mseddon Jun 29 '19 at 13:15 In the general case, the syntax for the OpenSSH console client is as follows: ssh username@host -p port. Under the Connection menu, expand SSH and select Tunnels.Check the Local radio button to setup local, Remote for remote, and Dynamic for dynamic port forwarding.. using the built-in OpenSSH client or start it from another computer on your network. Tell PuTTY to forward X11 connections to your desktop: In PuTTY’s configuration window, make sure the remote server’s hostname or IP, and the correct port, are entered on the Session category. Accessing remote servers with SSH on Windows systems. Click on "Tunnels". In my case, the command looks as follows:
On a side note, when you are in a situation where you are on a Linux work station and need to tunnel RDP through ssh in Linux, you can use the following ssh port forwarding, or tunnel (assuming you have an on-premise Linux server to SSH into to set up the port forward):
; Check the box for Enable X11 forwarding. The question is how to get this to happen within ssh/config. Microsoft has a native OpenSSH client AND server on Windows. ; In the Connection category, go to SSH, then X11. For port forwarding to work, our Windows PC needs always to have the same static internal IP on the LAN, and not a dynamic IP assigned by a DHCP Server. Connecting to the SSH Server in Windows 10. Starting with Windows 10 update 1903, the Windows 10 feature "SMB 1.0" must be turned off. PuTTY for Windows. I am running under Windows, which doesn't support unix sockets, and I can forward the unix socket to a tcp port already from the command line. Remote Connect To Mac with SSH Using PuTTY. E.g., you could use port 8888.