您好,欢迎来到华佗健康网。
搜索
您的当前位置:首页ansible报错UsingaSSHpasswordinsteadofakeyisnotp。。。

ansible报错UsingaSSHpasswordinsteadofakeyisnotp。。。

来源:华佗健康网
ansible报错UsingaSSHpasswordinsteadofakeyisnotp。。。

安装和配置好ansible,执⾏命令时报错如下

[root@test01 ansible-install]# ansible test -m shell -a 'w'10.xx.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 host.10.xx.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 host.10.xx.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/ansible.cfg[defaults]

forks = 8 #执⾏时并发数

host_key_checking = False #不检测host key

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo0.com 版权所有 湘ICP备2023021991号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务