- First of all, we need to login to remote host as root
- ssh vim edit instruction profile, such as
vim /etc/ssh/sshd_config
- Find PermitRootLogin, the yes to no
- Modify the configuration need to restart the ssh service
service sshd restart
centos ssh remote login as root ban
Guess you like
Origin www.cnblogs.com/lay2017/p/11830152.html
Recommended
Ranking