You are currently viewing How to Configure RDP on Kali Linux

How to Configure RDP on Kali Linux

In this article we will cover how to configure Remote Desktop Protocol (RDP) on Kali Linux using Xfce.

There are a few ways to do this, but I think the easiest way to configure and enable RDP is to add the following script to your Kali Linux client.

Create the following file:

sudo nano

Add the following script:


Note that the port is 3390. If you wish to change this to 3389 to reflect the default RDP port number, change this port number.
echo "[i] Updating and upgrading Kali (this will take a while)"
apt-get update
apt-get full-upgrade -y

echo "[i] Installing Xfce4 & xrdp (this will take a while as well)"
apt-get install -y kali-desktop-xfce xorg xrdp

echo "[i] Configuring xrdp to listen to port 3390 (but not starting the service)"
sed -i 's/port=3389/port=3390/g' /etc/xrdp/xrdp.ini

Save the script and then run the following:

chmod +x

Run the script:


The script will take some time to install and run everything so please be patient.

The script will take some time to run but once it has finished, start xrdp using the following command:

systemctl start xrdp

(Optional) Validate that the service has started:

systemctl status xrdp

Once the service has started, using your RDP client, connect to the Kali Linux host.


Kelvin is a Cyber Security professional with years and experience working with organisations in different verticals, both large and small. He enjoys contributing to the Network Wizkid knowledge base and he also creates technical content. Kelvin enjoys learning new things and often does this by working on achieving new technical certifications. He holds many professional certifications and academically, he has achieved a Bachelors and Master's degree in both Computer Networks and Cyber Security.

Leave a Reply