vi /etc/ssh/sshd_config 修改 PermitRootLogin yes 保存后 /etc/init.d/ssh restart 微信截图_20200929111641.png 容器 会关闭 ,再启动容器登陆 即可