用密码登录root docker官网给的sshdemo是ubuntu的,https://docs.docker.com/engine/examples/running_ssh_service/ 亲测可以 FROM ubuntu:16.04 RUN apt update #sshd RUN apt install -y openssh-server RUN mkdir /var/run/sshd RUN echo 'root:aaaa' | chpasswd RUN sed -i 's/P
1. 使用ssh连接不上centos 6.5的解决方法: 错误显示: Connecting to 192.168.1.106:22... Could not connect to '192.168.1.106' (port 22): Connection failed. Type `help' to learn how to use Xshell prompt. 解决方法: 首先,CentOS上检设置: 1. 关闭防火墙 service iptables stop chkconfig iptab