Tag Archives: kali

xrdp on Kali

apt-get update
apt-get full-upgrade -y
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
sudo /etc/init.d/xrdp start
sudo systemctl enable xrdp

Access it from MS RDP using port 3390 (it translates to 3389 – see the line with sed to change)

 

from https://www.kali.org/docs/general-use/xfce-with-rdp/

 

Enabling SSH on Kali

This will probably work for other distributions as well.  Be aware this enables password auth.

apt install openssh-server
mkdir /etc/ssh/defaultkeys
mv /etc/ssh/ssh_host_* /etc/ssh/defaultkeys/
dpkg-reconfigure openssh-server
systemctl enable ssh.service
systemctl start ssh.service
systemctl status ssh.service

 

Edit /etc/ssh/sshd_config

and the following:

PubkeyAuthentication yes

PasswordAuthentication no

To use key based authentication.