Connecting to remote desktop from windows through ssh

0

I am sitting on a Windows computer, on a network, that doesn’t allow me to connect to a Windows server outside the network on RDP - however I am able to SSH into a third server outside the network.

Is it possible to make a remote desktop connection through my ssh server, so I can get the Windows server remote desktop on my Windows computer?

Tommy

Posted 2015-08-26T06:59:47.337

Reputation:

Answers

0

From a Linux Host you Open a Terminal and connect using the folowing command.

ssh -X [ipaddr]

then you can use graphically aplications and use your preferred RDP client for example rdesktop

being more clear that will allow you to connect graphically with RDP client from that host located inside your current area network.

If the OS from the host using SSH client is Windows you should fordward the X server and should have a Windows X Session software as Xming.

In PuTTY X11 Fordwarding can be enabled in

Conection > SSH > X11 and mark Enable X11 fordwarding

enter image description here

Prerequisites.

  • Remote Linux host must be running a X server.
  • You should have a good bandwidth conection.

Francisco Tapia

Posted 2015-08-26T06:59:47.337

Reputation: 2 383

I think this would be better accomplished using the Tunnels option right below X11 in the putty UI. SSH to outside server to tunnel a port to RDP server and port. – ssnobody – 2015-08-26T17:58:37.547

@ssnobody i dont know whats that options does, explain us in an answer – Francisco Tapia – 2015-08-26T18:00:14.083

http://superuser.com/questions/881099/how-to-create-ssh-tunnel-with-putty-to-connect-neo4j-database (To fixup, replace destination IP (shown as localhost with remote RDP server IP and replace destination port (shown as 7474) with 3389 – ssnobody – 2015-08-26T18:14:41.593

The -X and -Y options for SSH are for X11 forwarding. The questioner needs IP forwarding, using -L – ivanivan – 2018-10-31T23:55:50.927

-1

It depends a bit on the bandwidth of you connection whether RDP works as you would like.

But technically you can use SSH port forwarding (https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding) to forward the relevant ports for RDP, so that you can connect to the other server via RDP over your SSH connection.

Darneas

Posted 2015-08-26T06:59:47.337

Reputation: 111

1Consider reproducing the relevant text from the link that would accomplish the OP's task. If the link goes down or changes, this answer isn't very useful. – ssnobody – 2015-08-26T17:56:39.250

http://superuser.com/help/how-to-answer Links to external resources are encouraged @ssnobody is right. – Francisco Tapia – 2015-08-26T18:24:26.440