編輯sshd_config配置文件vim
vim /etc/ssh/sshd_config
PermitRootLogin yes更改成nossh
重啓sshrest
systemctl restart sshd