Pragma Systems Technical Forum

RDP through SSH Tunnel

https://forums.pragmasys.com/Topic169.aspx

By anonymous123 - 5/10/2012 5:06:08 AM

Hi Pragma,

I would like to know whether or not it is possible to make RDP connection to a remote server through an SSH tunnel. Please post your reply as soon as possible.

Thank you.
By Technical Support Group (TSG) - 5/10/2012 5:27:40 AM

Yes, it is possible to secure a remote desktop session by connecting through ssh tunnel.

You can use our console ssh client (ssh.exe located in the \pragma\clients folder)  to create the ssh tunnel and do RDP through it.Here are the steps that you need to follow:


Approach 1:

ssh -L 27000:winserver:3389  winserver   ;; run this in Windows 7machine

start mstsc in the Windows 7 pro and connect to"localhost:27000" to get a tunneled session to windows server machinenamed "winserver"


Approach 2:

ssh -g -L 27000:winserver:3389  winserver        ;; run this in Windows 7 machine andmake tunneled RDP available from any machine with the "-g" globalflag

start mstsc in any machine, connect to"windows7machine:27000" to get a tunneled session to windows servermachine named "winserver"


NOTE: Port 27000 was used as the source port in the examples above but you can use any available port. However, the source port likely has to be different ( not 3389 ) as most likely port 3389 is already running Microsoft RDP server listener and will not be available for ssh.


Thank you,


Technical Support Group (TSG)
Pragma Systems, Inc.