修改时,要在root下修改
[root@centos ~]# vim /etc/sudoers
97 ## Allow root to run any commands anywhere
98 root ALL=(ALL) ALL
99 zzzz ALL=(ALL) NOPASSWD: ALL
[root@centos ~]# vim /etc/ssh/sshd_config
PermitRootLogin no #禁止root用户登录
[root@centos ~]# systemctl restart sshd