Ensure you set a strong password:
sudo passwd root
Update the system and install both SSH components:
sudo apt update && sudo apt upgrade -y
sudo apt install openssh-server openssh-client -y
Edit the SSH configuration file:
sudo nano /etc/ssh/sshd_config
Find and modify this line:
PermitRootLogin yes
Save and exit
Apply the changes by restarting SSH:
sudo systemctl restart ssh
If UFW (Uncomplicated Firewall) is enabled, allow SSH access:
sudo ufw allow ssh
sudo ufw reload
This setup ensures that both the SSH server (for receiving connections) and SSH client (for making connections) are installed properly.
To save you troubles with discovery issues, i prefer installing SAMBA server,