1、修改SSHD配置,禁用root登錄 vim /etc/ssh/sshd_config 找到“PermitRootLogin yes”把后面的yes改成no。 2、重啟SSHD服務(wù) service sshd restart