This article covers how to install and use XRDP to securely connect to remote servers. Xrdp is an open-source implementation of the Microsoft Remote Desktop Protocol (RDP) that allows you to control a remote system graphically.
With RDP, you can log in to the remote machine and create a real desktop session the same as if you had logged in to a local machine.
Installing Xrdp on Debian:
Xrdp package is available in the standard Debian repositories. To install it, run:
$ sudo apt install xrdp
The service will automatically start once the installation process is complete. You can verify that the Xrdp service is running by typing:
$ sudo systemctl status xrdp
How to Configure Xrdp on Linux?
The Xrdp configuration files are stored in the /etc/xrdp directory.
Whenever you make any changes to the configuration file you need to restart the Xrdp service:
$ sudo systemctl restart xrdp