Related Items  

Linux and Windows IT Support  

We make IT Support easy!

Windows, Apple and Linux IT support and services.

Login or Register  

If you wish to contribute an article, please login or register.

Remote Desktop over SSH in Windows 7

PrintE-mail

For reasons unknown, Windows 7 Remote Desktop Connection prevents connections to localhost, as a result you cannot tunnel to the RDP machine directly. (ie. 3389:remotesystem:3389) Trying to use hostnames and point to 127.0.0.1 doesn't work either - the system recognizes that it is connected to localhost and gives an error.  (This was removed on XP with Service Pack 2, but then brought back)


A workaround for this issue is quite simple: use port 3391 as the source port (3390 doesn't work either for some reason).

I use openssh or cygwin's ssh to connect, using this:

ssh -l username -L 3391:remotesystem:3389 remote.server.com

But if you are using putty, here are some helper images:

rdp_tunnel_putty

and then Remote Desktop window:

rdp_login_window

and you are done.

 

Comments (1)
Re: Remote Desktop over SSH in Windows 7
1 Tuesday, 03 January 2012 06:05
Alan S
You can also listen on 127.0.0.2 instead of localhost and keep port 3389:

ssh -l username -L 127.0.0.2:3389:remotesystem:3389 remote.server.com

Add your comment

Your name:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
yvComment v.1.24.0
   
Copyright © 1999 - 2017 Virtual Helpme | Trusted IT Services | Original Template: Allrounder
-->