[CentOS] Disable SSH logins as root

Created on November 30, 2026

Set the following directive in /etc/ssh/sshd_config on the SSH server to prohibit direct SSH logins to the root account.

PermitRootLogin no

Verify that a separate administrative account can log in before reloading the SSH service.

CentOS