service sshd status
Check whether the SSH service is enabled and whether its status is active.
Configuration file path: /etc/ssh/sshd_config
Set the value of PermitRootLogin to yes.
service sshd restart