1、查看服务状态:/etc/init.d/ssh status
显示Active: inactive(dead)
2、vi /etc/ssh/sshd_config
将PasswordAuthentication yes 该行前面的#去掉
将#PermitRootLogin without-password该行“without-password”修改为yes
3、启动ssh服务:/etc/init.d/ssh start
4、重新查看状态:/etc/init.d/ssh status