Unable to log in via ssh after Rocky Linux 9 is installed

    Rocky Linux is a version released by the original founder of CentOS to solve the problem of CentOS outage. This version is based on the downstream release of Red Hat Enterprise Linux 9.

    In Rocky Linux 9 version, for added security, SSH root password login is disabled by default. This is the default rule set by the system, and we can also change it.

    Allow Rocky Linux 9 root user to log in through ssh:

Edit the SSH configuration file

vi /etc/ssh/sshd_config
and find the following content

#PermitRootLogin prohibit-password 

Modify it to

PermitRootLogin yes

Save and exit Restart the SSH service

systemctl restart sshd

At this time, the root user can pass ssh remote login.

Guess you like

Origin blog.csdn.net/weixin_41687096/article/details/132921120
Recommended