You may see this error on a cPanel CentOS server being upgraded to AlmaLinux 8 with the Elevate project:

[ERROR] OpenSSH configuration file does not explicitly state the option PermitRootLogin in sshd_config file, which will default in RHEL8 to "prohibit-password".
Please set the 'PermitRootLogin' value in /etc/ssh/sshd_config before upgrading.

The fix is easy, though. Just run this code:

echo PermitRootLogin yes | sudo tee -a /etc/ssh/sshd_config

Was this answer helpful? 90 Users Found This Useful (90 Votes)