使用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主机
解决方案:
首先,需要关闭hosts文件中主机的防火墙
systemctl stop firewalld.service
然后,在ansible这端的主机去ssh连接hosts文件中的虚拟机,此过程会生成秘钥,此流程走通后就可以使用ansible来ping主机
相关文章推荐
- 使用MagicAJax的AjaxPanel时有时会弹出"Using the AjaxCallHelper write methods outside of an AjaxCall is not allowed."
- Ubuntu下Firefox播放mp3显示HTTP "Content-Type" of "audio/mpeg" is not supported错误的解决办法
- Android studio 2.2.2 中使用 so 文件出现:dlopen failed: "/xxx.so" is 32-bit instead of 64 bit
- 使用onsctl ping显示ons is not running
- 关于http客户端常见错误"警告:Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
- 关于http客户端常见错误"警告:Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is rec"
- Poco 1.4.2 在Windows平台下使用时link报错 "CreateProcess is not defined"的解决
- It is not possible to run two different versions of ASP.NET in the same IIS process.问题的解决
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- It is not possible to run two different versions of ASP.NET in the same IIS process
- Is it possible to use a checkbox in a split button list instead of the gear icon?
- "this class is not key value coding-compliant for the key ..."问题的解决
- Red Hat Linux使用yum 安装报 关于Public key for *.rpm is not installed 的解决方法
- bug:"Operation is not valid due to the current state of the object."
- windbg中"Your debugger is not using the correct symbols"问题解决方法
- Description: Failed to decrypt protected XML node "DTS:Password" with error 0x8009000B "Key not valid for use in specified state
- Sharepoint Error: "This server is not the indexer of this search application"
- object of abstract class type "我的类" is not allowed 解决方案
- parameter "bandwidth_type" is not a formal parameter of instantiated module的解决方法
- "is not fixed because of errors" 表索引问题处理