【Ansible】SSH Error: ssh_exchange_identification: Connection closed by remote host

ansible ssh到目标机器

时好时坏,报错:  SSH Error: ssh_exchange_identification: Connection closed by remote host

咋搞?

解决办法简单粗暴:

/etc/init.d/ssh restart

 

啥原因?不知道!

可能是虚拟机太傻叉!

也有可能使用了跳板机,然后设置了forks数目不为1

 

参考资料:

http://wangmukun.blog.51cto.com/651644/202747

http://www.justwinit.cn/post/4726/

http://patchwork.ozlabs.org/patch/263713/

 

posted @ 2016-12-09 11:07  junneyang  阅读(3946)  评论(0编辑  收藏  举报