Security

A security audit finds that an attacker could attempt to authenticate directly as root over SSH, even with a key. Administrators must use personal accounts and sudo instead. Which sshd_config directive BEST meets this requirement?

Show the answer

Correct answerC. PermitRootLogin no

PermitRootLogin no refuses every SSH login as root, regardless of method. PasswordAuthentication no only disables passwords, so root could still log in with a key.