How to Enable Root Login Via SSH on CentOS 7

To enable root login via SSH on CentOS 7, follow these steps:

Step 1 : Check SSH status

Step 2 : Edit sshd_config

Step 3 : Uncomment and set PermitRootLogin to yes

Step 4 : If you want to login using a password, edit PasswordAuthentication to yes

Step 5 : Set root password if not already active

Step 6 : Restart SSH service

Step 7 : Test Connection

Congratulations! You have successfully enabled root login via SSH on CentOS 7.