leafpad /etc/ssh/sshd_config
搜索:
#PasswordAuthentication yes (去掉注释) #PermitRootLogin prohibit-password (去掉注释后面的并删除改为yes)
service ssh start
service ssh status
解决方案:
service ssh restart