centos ssh remote login as root ban

  1. First of all, we need to login to remote host as root
  2. ssh vim edit instruction profile, such as
    vim /etc/ssh/sshd_config
  3. Find PermitRootLogin, the yes to no
  4. Modify the configuration need to restart the ssh service
    service sshd restart

     

Guess you like

Origin www.cnblogs.com/lay2017/p/11830152.html