Microsoft Remote Desktop Connect To Linux

Posted onby

I recently installed Ubuntu 18.10 [BETA] desktop on one of my test servers… To test my apps, I wanted to connect to the Ubuntu machine via Microsoft Remote Desktop Connection (RDP)….

If you want to learn how to make that work, the steps below should be a great place to start… Students and new users should fine the steps below helpful…..

In most Linux environments, VNC server and other opensource remote connection tools are the only options available to users… You don’t see tools supporting Microsoft Remote Desktop Connction (RDP) protocols to connect to Linux desktop… The only tool that gets this done is XRDP….

XRDP is an open source remote desktop protocol server which uses RDP to present a GUI to desktop clients… It provides a fully functional Linux terminal server, capable of accepting connections from rdesktop, freerdp, and Microsoft’s own terminal server / remote desktop clients.

This brief tutorial is going to show students and new users how to using Windows own remote desktop connection protocol to connect to Ubuntu 18.10 / 18.04 and 16.04 desktops

When you’re ready, follow the steps below to get it working…

Open Remote Desktop; After opening Remote Desktop window, enter with given port number as address then click on connect button. After opening Kali Linux, enter username and password and click on OK. Now you are connected to Kali Linux via Xrdp. After completing your work, enter the following command to stop the Xrdp. Students can use Microsoft Remote Desktop (RDP) to connect to their Linux VMs after their instructor sets up their lab with RDP and GUI packages for a Linux graphical desktop environment (such as MATE, XFCE, and so on). Here are the steps to connect: On the tile for your VM, ensure the VM is running and click. The RD Gateway server listens for Remote Desktop requests over HTTPS (port 443) and connects the client to the Remote Desktop service on the target machine. Utilize Campus RDP Gateway Service. This is the best option to allow RDP access to system categorized as UC P2 and lower.

  1. Xrdp is an open source tool which allows users to access the Linux remote desktop via Windows RDP. Apart from Windows RDP, xrdp tool also accepts connections from other RDP clients like FreeRDP, rdesktop and NeutrinoRDP.
  2. Thank you for writing to Microsoft Community Forums. I understand that you are facing issues while connecting to Ubuntu client using Windows Remote Desktop connection. In order to connect to remote desktop session on an Ubuntu machine you need to install XRDP server on Ubuntu first.

Linux Remote Desktop Windows 10

Step 1: Install XRDP Server

To get Ubuntu desktops to accept RDP connections, you must first install and enable XRDP remote desktop tool… to do that, run the commands below

After running the commands below reboot the desktop…..

Microsoft Remote Desktop Connect To Linux Download

Step 2: Connect from Windows 10

Microsoft Remote Desktop Connect To Linux

Now that Xrdp server is installed, go and open Windows Remote Desktop Connection app and connect to the server IP or hostname… Make sure you’re not already logged into the desktop…

XRPD will not connect if you’re already logon to the desktop with the account you wish to connect…. The solutions I have tested is to restart the Ubuntu desktop and not to logon….

Then click Connect to initiate the connection to XRDP server…. you should be warned about Windows not trusting the computer you’re conneting to… Accept and continue to connect anyway..

Next, type in your Ubuntu machine account username and password and connect using Xorg session

When your accout username and password are confirmed, you should be logon to your Ubuntu machine from Windows… as shown in the image below

That’s it!

You are now connected to your Ubuntu desktop from Windows using Microsoft own remote desktop connection protocol (RDP)… The graphic isn’t great, but good enough to get your work done….


If you attempt to logon to the Ubuntu machine and the connection is ending abruptly without connecgting, follow the steps below to resolve…

Microsoft Remote Desktop Client Linux

  • Make sure you’re not already logged on to the Ubuntu desktop… best thing is to restart and don’t logon…
  • If you try Xorg session and it quickly disconnect… the next time, select X11rdp from the drop-down list.. it will hang and not fully connect..… that’s OK…
  • Close the X11rdp session by canceling the RDP windows… then reboot the Ubuntu desktop again… After rebooting, try the Xorg session again… this time is should connect….
  • You’ll be prompted to authenticate three times after loggon on….

That’s it!

You may also like the post below: