How to enable RDP connection on Ubuntu Desktop

l'équipe PulseHeberg Updated by l'équipe PulseHeberg

This guide allows you to enable RDP on a Ubuntu Desktop server, however since RDP is not optimized for Linux we recommend using a VNC service instead if you need smoothness.

After installing Ubuntu Desktop, you can activate an RDP service to connect to your Ubuntu Desktop server via the Remote Desktop Connection software on Windows or Microsoft Remote Desktop on Linux and MacOS.

Our guide is based on Ubuntu 20.04
If you have not installed Ubuntu Desktop, you can follow our guide.
  1. Connect in SSH to your VPS server
  2. Install the xrdp package:
    sudo apt install xrdp -y
  3. Add the user xrdp to the ssl-certs group so that he can access the file /etc/ssl/private/ssl-cert-snakeoil.key:
    sudo adduser xrdp ssl-cert
  4. Restart the xrdp service to take these changes into account:
    sudo systemctl restart xrdp
  5. Login to the VPS IP from the Remote Desktop Connection software on Windows or Microsoft Remote Desktop on Linux and MacOS with the username and password of your VPS.
  6. You have good access to the Ubuntu Desktop in RDP
On high resolutions XRDP can be particularly slow, we recommend setting a lower resolution on your RDP connection software if necessary.
Although RDP easily allows remote access to your VPS server, it is not fully optimized for a Linux system.

How did we do?

How to activate VNC connection on Ubuntu Desktop?

How to install Ubuntu Desktop?

Contact