您的位置:首页 > 其它

使用playbooks来ping主机时显示"Using a SSH password instead of a key is not possible

2017-11-17 13:42 459 查看
fatal: [192.168.1.76]: FAILED! => {“failed”: true, “msg”: “Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add this host’s fingerprint to your known_hosts file to manage this host.”}

解决方案:

首先,需要关闭hosts文件中主机的防火墙

systemctl stop firewalld.service

然后,在ansible这端的主机去ssh连接hosts文件中的虚拟机,此过程会生成秘钥,此流程走通后就可以使用ansible来ping主机
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐