标签:closed c/s 地址 bash exchange 密钥 pull 删除 hang
安装过程
docker pull centos
docker images
#指定ip地址,和端口号
docker run -itd -p 127.0.0.1:50001:22 centos /bin/bash
#安装ssh
yum install openssh-server
#解决ssh_exchange_identification: Connection closed by remote host
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key
#解决WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
vim ~/.ssh/known_hosts
删除其中对应IP的密钥
标签:closed c/s 地址 bash exchange 密钥 pull 删除 hang
原文地址:http://www.cnblogs.com/zhengbin/p/6359216.html