su root
vi /etc/ssh/sshd_config
修改如下配置项:
或去掉PasswordAuthentication yes 前面的#注释掉。
或去掉PermitRootLogin yes 前面的#注释掉。
service sshd restart