How to take GUI Remote of RHEL




You can install and configure XRDP on RHEL/CentOS to take GUI remote of server.

Below is the process to install xrdp

1. Install pre-requisites

sudo yum install gcc make pam-devel openssl-devel vnc-server autoconf automake libtool libX11-devel libXfixes-devel

2. Download the source code


3. Extract the source code
tar zxvf xrdp-v0.6.1.tar.gz
cd xrdp-v0.6.1

4. Run bootstrap and configure file

5. Compile the source code
sudo make install

6. Edit iptables to permit inbound RDP

sudo nano /etc/sysconfig/iptables


-A INPUT -m state --state NEW -m tcp -p tcp --dport 3389 -j ACCEPT

7. Restart iptables service
sudo service iptables restart

8. Make it a little more secure by enabling 128 bit 2-way encryption

sudo nano /etc/xrdp/xrdp.ini

Change crypt_level=low to crypt_level=high

9. Generate a new RSA key

sudo /usr/local/bin/xrdp-keygen xrdp auto

10. Start XRDP up and then try and connect to it using remote desktop client in Windows

sudo /etc/xrdp/ start

11. Finally make XRDP auto start as a service.

sudo ln -s /etc/xrdp/ /etc/init.d/xrdp
sudo chkconfig --add xrdp
sudo chkconfig xrdp on
sudo service xrdp start


Add a Comment

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