Installing XRDP onto RHEL6 / Red Hat Enterprise Server

I was told by a senior colleague that XRDP ( is a great way to remotely connect to your Linux servers through windows remote desktop protocol. It extends an XOrg session through through VNC and then the RDP. Here is how you can get it working on RHEL6!

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


tar zxvf xrdp-v0.6.1.tar.gz
cd xrdp-v0.6.1
sudo make install

Add user(s) to the 100, “users” group to allow them to login via RDP

sudo nano /etc/group

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

sudo service iptables restart

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

Generate a new RSA key

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

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

sudo /etc/xrdp/ start

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