下载ssh docker中的系统 sudo apt install openssh-server sudo apt install ssh 检查ssh状态 service ssh status 修改ssh配置文件 sudo vim /etc/ssh/sshd_config 将PermitRootLogin设置为yes PermitRootLogin yes 保存退出 连接即可