Introduction xrdp is a Remote Desktop Protocol (RDP) Server, allowing
RDP clients to be presented an X windows desktop to the user.
First install xrdp:
sudo apt-get -y install xrdp
Next, change the encryption level to high from the default low:
sudo nano /etc/xrdp/xrdp.ini
Next, allow just RDP through the local firewall:
sudo ufw allow 3389/tcp
But one thing more
sudo vim /etc/ssh/sshd_config
. Change Password Authentication to
yes from no, then save and exit.
Note After making this change, press SHIFT+ : [colon] to open a new command entry box in the vim editor. Type wq, and then press Enter to save changes and exit vim.
Restart the SSH daemon to make this change take effect.
sudo /etc/init.d/ssh restart
Temporarily gain root privileges and change the password for the ubuntu user to a complex password to enhance security. Press the Enter key after typing the command
passwd ubuntu, and you will be prompted to enter the new password twice.
sudo –i passwd ubuntu
Finally, restart xrdp and you should be able to connect:
sudo /etc/init.d/xrdp restart