docker 容器用putty连接出错:Disconnected:No supported authentication methods available

进入ubuntu 将/etc/ssh/sshd_config中的

PasswordAuthentication no 
通过vim编辑器将该参数改成yes,如下 
PasswordAuthentication yes 
保存,然后重启ssh服务 
service ssh restart