限制root远程登录: 修改:vi /etc/ssh/sshd_config 搜索Root(/Root)

把#PermitRootLogin yes修改为(PermitRootLogin no) 改完配置文件后需要重启服务:systemctl restart sshd.service