Monday, November 16, 2009

RDP on windows over ssh

First of all, you need to bind the port. Usually we use putty on a windows machine, or ssh on linux.

putty -L port1:DESKTOP_IP:port2 account@ip

and leave the putty window open. In many cases:
port1: 3390, the default rdp port on windows machine.
DESKTOP_IP: the ip of the remote desktop
port2: the rdp port on the remote desktop

Sometimes on a windows machine, remoting by this method will generate an error of not more than one console session is allowed. In certain windows versions, remoting over ssh is blocked. The easy fix is to use a different port other than 3390, such as 23468; then in the remote desktop ip address, type localhost:23468, which will fix the problem.

No comments: