How To Enable SSH Login for root user in RHEL9/CENTOS9
When you install RHEL9/CENTOS9 by default root login prohibited
for ssh this article refers how to enable root login.
Step 1. #vi /etc/sysconfig/sshd_config
Search PermitRootLogin
Step2. Commented out # and change the line prohibit-password
to yes and save the file.
Step3. Restart ssh service
#systemctl restart sshd and set the password for root from command passwd
Take the putty/ssh session and login with root
Comments
Post a Comment