How to fix remote desktop connection doesn't work after some sessions

I installed Ubuntu Desktop and created an SSH connection using the XRDP protocol, everything was fine but after a few sessions the Windows “Remote Desktop Connection” app gives me error

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
May 3, 2023

Hey @gabrielemarrano,

There was a really good discussion about a similar issue to what you are describing here;

I’ll urge you to give the question a look and see if you find it usefull.

Site Moderator
Site Moderator badge
May 3, 2023

Hello @gabrielemarrano

Would you mind sharing the exact error so we can check this for you?

You can check if the xrdp is running on your droplet

  1. sudo systemctl status xrdp

If the service is running you can try to connect again. If the status of xrdp is not running, you may have to start the service manually with this command:

  1. sudo systemctl start xrdp

After executing the above command, verify the status again to ensure xrdp is in a running state.

You can also try to connect with different RDP client as the problem may be with the client.


Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel