1、修改SSHD配置,禁用root登录 vim /etc/ssh/sshd_config 找到“PermitRootLogin yes”把后面的yes改成no。 2、重启SSHD服务 service sshd restart