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