Execute this command:
sudo apt update
sudo apt install openssh-server
nano /etc/ssh/sshd_config
Inside the file, locate the "PermitRootLogin" and set to "yes"
save the file
Restart the SSH server
systemctl restart ssh