{"id":757,"date":"2022-12-18T21:12:31","date_gmt":"2022-12-18T19:12:31","guid":{"rendered":"https:\/\/www.gccdat.be\/main\/?p=757"},"modified":"2022-12-18T21:26:38","modified_gmt":"2022-12-18T19:26:38","slug":"using-xrdp-to-allow-windows-rdp-to-connect-to-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/www.gccdat.be\/main\/2022\/12\/18\/using-xrdp-to-allow-windows-rdp-to-connect-to-ubuntu-22-04\/","title":{"rendered":"Using XRDP to allow windows RDP to connect to Ubuntu 22.04."},"content":{"rendered":"\n<p>You can use XRDP to connect to a linux session from Windows RDP.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><\/p>\n<cite>One remark though: You cannot be logged on in a session on the machine, and simultaniously login via RDP. If you do so, you will find your RDP session closses, after entering the correct password. So if this happens, make sure the RDP user is not logged on to the system the traditional way.<\/cite><\/blockquote>\n\n\n\n<p><strong>On ubuntu install and configure:<\/strong><\/p>\n\n\n\n<p><code>sudo apt install xrdp<\/code><br>Installs the xrdp package.<\/p>\n\n\n\n<p><code>sudo adduser xrdp ssl-cert \u00a0<\/code><br>Make sure the xrdp user will allow SSL (and has access to the certificate)<\/p>\n\n\n\n<p><code>sudo systemctl restart xrdp<\/code><br>Restart the service to activate the changes.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Query status of xrdp:<\/strong><br><code>sudo systemctl status xrdp<\/code><\/p>\n\n\n\n<p><strong>xrdp configudation<\/strong><br>The Xrdp configuration files are located in the \/etc\/xrdp directory. For basic Xrdp connections, you do not need to make any changes to the configuration files.  Xrdp uses the default X Window desktop environment (Gnome or XFCE).  The main configuration file is named xrdp.ini . This file is divided into sections and allows you to set global configuration settings such as security and listening addresses and create different xrdp login sessions.<\/p>\n\n\n\n<p><strong>Configuring Firewall<\/strong><\/p>\n\n\n\n<p>The Xrdp daemon listens on port 3389 on all interfaces. If you run a firewall on your Ubuntu server , you\u2019ll need to open the Xrdp port.  To allow access to the Xrdp server from a specific IP address or IP range, for example, 192.168.33.0\/24, you would run the following command:<\/p>\n\n\n\n<p><code>sudo ufw allow from 192.168.33.0\/24 to any port 3389<\/code><\/p>\n\n\n\n<p>If you want to allow access from anywhere open up the port without restriction by running:<\/p>\n\n\n\n<p><code>sudo ufw allow 3389<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use XRDP to connect to a linux session from Windows RDP. One remark though: You cannot be logged on in a session on the machine, and simultaniously login via RDP. If you do so, you will find your RDP session closses, after entering the correct password. So if this happens, make sure the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[64,66,67,65],"class_list":["post-757","post","type-post","status-publish","format-standard","hentry","category-development","tag-linux","tag-rdp","tag-windows","tag-xrdp"],"_links":{"self":[{"href":"https:\/\/www.gccdat.be\/main\/wp-json\/wp\/v2\/posts\/757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gccdat.be\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gccdat.be\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gccdat.be\/main\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gccdat.be\/main\/wp-json\/wp\/v2\/comments?post=757"}],"version-history":[{"count":3,"href":"https:\/\/www.gccdat.be\/main\/wp-json\/wp\/v2\/posts\/757\/revisions"}],"predecessor-version":[{"id":762,"href":"https:\/\/www.gccdat.be\/main\/wp-json\/wp\/v2\/posts\/757\/revisions\/762"}],"wp:attachment":[{"href":"https:\/\/www.gccdat.be\/main\/wp-json\/wp\/v2\/media?parent=757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gccdat.be\/main\/wp-json\/wp\/v2\/categories?post=757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gccdat.be\/main\/wp-json\/wp\/v2\/tags?post=757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}