centos 6.6 运行docker服务后,新建的容器是centos6.6系统,但是ssh无法连接进去,会提示报错,

一般是2个问题,修改为如下,重启sshd服务即可。

UsePAM no
PermitRootLogin yes