vi /etc/ssh/sshd-configssh
找到#PermitRootLogin yeside
修改成 PermitRootLogin norest
:wqit
重启ssh服务class
service sshd restartservice