How to access Kali Linux (GUI) remotely with XRDP

To access your Kali Linux remotely with XRDP please follow the steps below:

I assume that, you have already installed the Kali Linux on your local machines or cloud VM.

Connect your Kali Linux with SSH and run - sudo su command

First run - apt update 


And run - apt upgrade -y



Install Desktop Environment- apt install -y kali-desktop-xfce


Now run - systemctl start ssh.socket


Type - systemctl enable ssh.service


Now Run and install XRDP for remote connection - apt-get install xrdp -y when it asks also select your desired keyboard layout.


Start the xrdp service - service xrdp start

Start xrdp sesman - service xrdp-sesman start


Enable the RC by run - update-rc.d xrdp enable


Add user on your Kali Linux - adduser username
In my case I use - adduser monirul and then follow instructions to add password to the user.

Give the root permission to the user by - usermod -aG sudo monirul


Give bash permission by run this - chsh -s /bin/bash monirul


Open RDP client on your windows and type your IP address and click connect.



Use your username and password which you have created earlier.


That's all for connecting your Kali Linux / Ubuntu / Debian virtual/cloud machine remotely with XRDP.

If you face any problem and need help, please don't forget to ask questions.

Comments