ansible报错UsingaSSHpasswordinsteadofakeyisnotp。。。

ansible报错UsingaSSHpasswordinsteadofakeyisnotp。。。

2023年6月24日发(作者:)

ansible报错UsingaSSHpasswordinsteadofakeyisnotp。。。安装和配置好ansible,执⾏命令时报错如下[root@test01 ansible-install]# ansible test -m shell -a 'w'.37.26 | FAILED | rc=-1 >>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 .37.25 | FAILED | rc=-1 >>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 .37.24 | FAILED | rc=-1 >>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.

解决⽅法:vi /etc/ansible/[defaults]forks = 8 #执⾏时并发数host_key_checking = False #不检测host key

发布者:admin,转转请注明出处:http://www.yc00.com/web/1687605360a24012.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信