Remote Desktop in Linux via SSH tunnel

So, the remote machine runs xrdp Remote Desktop Protocol server. You want to connect to it from your local Linux computer with a Remote Desktop client.

Run locally ssh with the following arguments:

ssh -L 33389:localhost:3389 -l <username> <remote_computer_ip>

This will connect to your local port 33389 the remote port 3389

Then open another terminal window and type:

rdesktop localhost:33389

This will run rdesktop and let it transparently connect to the remote machine port 3389 as if it were your local port 33389.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s