centos7禁用root用户登陆Jan 20, 2018添加新用户 useradd testpasswd test 编辑配置文件/etc/ssh/sshd_config PermitRootLogin no MaxAuthTries 6重启sshd服务 systemctl restart sshd.service