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

Popular posts from this blog

How to Add Users/Group/OU in OpenLdap

HOW TO INSTALL AND CONFIGURE KEEPALIVE BETWEEN TWO SERVERS ON CENTOS/RHEL

Installing K8s cluster in your local environment

USEFULL COMMANDS TO MANAGE ZIMBRA USERS AND SERVICES

File Permissions in Linux

HOW TO INSTALL AND CONFIGURE HAPROXY ON RHEL/CENTOS