Disallow root login

Edit sshd_config

sudo nano /etc/ssh/sshd_config

Change

PermitRootLogin yes

to

PermitRootLogin no

and then restart ssh

systemctl restart ssh

source https://www.thomas-krenn.com/de/wiki/SSH_Root_Login_unter_Debian_verbieten

Category.Linux