PSM:xRDP to a linux machine

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

PAM SaaS Articles
3 min read
L3 Networker
No ratings
This article details steps to enable xrdp on a Linux server.

Information on xrdp can be viewed here: http://www.xrdp.org/
Installation instructions can be found here: https://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-install-xrdp-on-red-hat-enterprise-linux-8.html

Note: This article is provided as a courtesy to customers, but this *is not* a supported configuration

This was tested with CentOS 7.x, RHEL 8.6 and RockyLinux 8.7. Screenshots are from the RockyLinux implementation
Before installing:
1. Root access either via sudo or direct login is required. Sudo is preferred
2. xrdp server must have the GNOME desktop installed

Limitations
---------------
1. While the session is recorded, there is no audit trail of the commands that were executed
2. Events such as suspicious activities (as defined on the PTA) are not alerted as would be in a normal PSM session
 

Issue

Hi, I would like to know if there is any current solution for doing an RDP to a Linux Machine. Is that supported? Thanks!

Environment

PSM Other technical issue

Steps

On the server where xrdp is to be installed:
1. Update the OS with this command: sudo yum install -y
2. Add the EPEL Repository
CentOS: sudo yum install epel-release -y
RHEL: sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
3. Install xrdp with sudo yum install xrdp -y 

ka32J000000g0zUQAQ__eid=ka32J000000g0zU&feoid=00N2J000009R3kv&refid=0EM2J000005NH8a.png
4. Once xrdp is installed, a permanent firewall rule must be created for allowing RDP traffic. run sudo firewall-cmd --permanent --add-port=3389/tcp
5. Reload the firewall rules. Run sudo firewall-cmd --reload
6. On the Linux server, open the xrdp configuration file. Run sudo vi /etc/xrdp/xrdp.ini
7. Note the line that begins with 'ports to listen on'. At the end of this section is a line that reads 'port=3389'. This needs to be changed to 'port=tcp://:3389'. Save the file and exit the editor.
8. Restart xrdp. Run sudo systemctl restart xrdp
7. Note the line that begins with 'ports to listen on'. At the end of this section is a line that reads 'port=3389'. This needs to be changed to 'port=tcp://:3389'. Save the file and exit the editor.
8. Restart xrdp. Run sudo systemctl restart xrdp

The following is performed via PVWA as a user who is able to add users, manage safes and edit platforms
1. In the platform that will manage the users on the xrdp server, you will need to add the PSM-RDP connection component. It will take about 15 minutes to refresh, or the PSM service can be restarted
ka32J000000g0zUQAQ__eid=ka32J000000g0zU&feoid=00N2J000009R3kv&refid=0EM2J000005NH8k.png
2. If the users for the server running xrdp are not in the vault, add them (xrdp-3). Once the users are added to the vault it is recommended to verify the passwords
ka32J000000g0zUQAQ__eid=ka32J000000g0zU&feoid=00N2J000009R3kv&refid=0EM2J000005NH8u.png
3. Once the users are added to the vault and passwords verified, we are ready to test
4. In the PVWA, select a user, then select 'RDP' and click 'Connect'. You will see a window like other PSM sessions. in LogonDomain, type the hostname of the xrdp server and in AllowSelectHTML5 type no
ka32J000000g0zUQAQ__eid=ka32J000000g0zU&feoid=00N2J000009R3kv&refid=0EM2J000005NH99.png
5. Once you click connect, this is a normal PSM session and you should be logged into the GUI of the Linux server
 
Rate this article:
  • 5612 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎04-06-2023 05:22 AM
Updated by: