If you want to allow root logins to your server, but want to disallow root logins with a password (leaving key logins enabled), then you can edit your /etc/ssh/sshd_config file and specify PermitRootLogin without-password.
If you want to allow root logins to your server, but want to disallow root logins with a password (leaving key logins enabled), then you can edit your /etc/ssh/sshd_config file and specify PermitRootLogin without-password.