找回密码
 注册
查看: 1443|回复: 0

Using a SSH password instead of a key is not possible because Host Key checking

[复制链接]

0

主题

0

回帖

9

积分

管理员

积分
9
QQ
发表于 2023-3-28 15:00:16 | 显示全部楼层 |阅读模式
172.24.110.164 | FAILED! => {
5 P. y) a: v/ ?4 H5 J* l" ^# b. k! o2 i    "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."; ^" }  Y& n& q* h7 N5 O5 J  c
}
; Y! o6 R9 R* Y" P) P% A0 `* b( `2 ^8 j3 f
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg# |3 w* M$ Q' [: I1 U) Z! |
[root@jumpserver3 ~]# mkdir /etc/ansible/3 L& S$ B1 S" i- E. g! u% |5 S
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg
7 Y: V+ G, ~2 r8 D" f# G- x[defaults]) X- V, w. Z0 C# X3 X' \( O
host_key_checking=False
2 I- O: V! ?, h8 K' M6 ~: hpipelining=True
7 X' k" M6 c3 P2 _forks=100* _8 v1 Z' X% q

* ]; M) }! ?' Q' a/ B( y+ Q0 w* c+ M* ?3 v4 V3 o

; o& z+ p0 w# r# o( w/ L7 x[root@jumpserver3 ~]# ansible -i inventory -m ping all3 c) U) q3 h& j' l9 f
/usr/local/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6.5 s. e" H& G- ^" {
  from cryptography.exceptions import InvalidSignature
- P: m5 ?0 v" j172.24.110.164 | SUCCESS => {
$ E/ r/ r( L. ~    "ansible_facts": {( a) k" R, p! }7 u, [
        "discovered_interpreter_python": "/usr/bin/python"! @1 ]% Q6 K. q. H4 f
    },) K# Z9 h* H0 j
    "changed": false,
. ]8 E' F4 A- Y3 O    "ping": "pong"1 p0 Z6 w& b6 G) G4 [
}& z6 n% |7 t) i, r* t  \) _5 o' C1 O
' V& u4 t/ u' G) [
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-11 22:05 , Processed in 0.016633 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表