ansible ssh到目标机器

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

咋搞?

解决办法简单粗暴:

/etc/init.d/ssh restart

 

啥原因?不知道!

可能是虚拟机太傻叉!

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