Disable the SELinux firewall and try again.
To switch from the key login mode to password login mode, perform the following steps:
sudo passwd root
If the key file is lost or damaged, reset the password of user root.
su root
vi /etc/ssh/sshd_config
Modify the following settings:
Alternatively, delete the comment tag (#) before PasswordAuthentication yes.
Alternatively, delete the comment tag (#) before PermitRootLogin yes.
To prevent unauthorized users from using the key file to access the Linux ECS, delete the /root/.ssh/authorized_keys file or clear the authorized_keys file.