Solving RDP issues in Ubuntu XRDP

๐Ÿ‘‹ Hey everyone! In this article, I’m going to share how I was finally able to connect to an Ubuntu machine running in Hyper-V via xrdp.

๐Ÿค” The issue I was facing was that I could connect via vsock, but I needed to allow TCP connections from any IP address. Here’s what I did to solve the problem:

1๏ธโƒฃ First, I modified the xrdp configuration file to allow connections via TCP. I changed the port setting to port=3389 and set use_vsock to false. This allowed connections via TCP from any IP address.

2๏ธโƒฃ Next, to restrict access to xrdp, I modified the xrdp configuration file to only allow connections from the local machine or any IP address. I set allowed_users to console and added 127.0.0.1/32 to the allowed_ip setting.

3๏ธโƒฃ Finally, I restarted the xrdp service to apply the changes.

๐ŸŽ‰ And that’s it! After making these changes, I was able to connect to the Ubuntu machine via TCP from any IP address.

๐Ÿ’ก Remember that allowing TCP connections from any IP address may expose the xrdp server to potential attackers, so it’s important to take appropriate security measures, such as using strong passwords, limiting access to the xrdp server, and using a firewall to restrict access to the machine running xrdp.

๐Ÿ™Œ I hope this article helps you if you’re facing a similar issue with xrdp. Let me know if you have any questions or if there’s anything I can help you with!

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *