Report this

What is the reason for this report?

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

Posted on May 2, 2023

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



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!

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.

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.

Regards

Hey @gabrielemarrano,

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

https://www.digitalocean.com/community/questions/unable-to-connect-to-ubuntu-vps-using-xrdp-from-microsoft-remote-desktop

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.