/etc/ssh/sshd_config
PermitRootLogin no
I honestly don't know why this isn't on by default.
Fair enough, however you can use the following, which will still allow key-based authentication:
PermitRootLogin without-password
We use essential cookies to make this site work, and optional cookies to enhance your experience.