找回密码
 注册
查看: 1442|回复: 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! => {4 p" \7 Z( K3 P. `8 y) E) {& V
    "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."
, @* w& E7 T! A: _}
; s4 ~% E" p5 a8 b1 ^
" ?& I9 A0 P3 A, N/ M[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg2 z" ?6 z1 T7 h  S! S% r7 C9 ^
[root@jumpserver3 ~]# mkdir /etc/ansible/
2 h5 [$ H  ?- C; @- }[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg' o* F& |1 h; U% q; s  u
[defaults]
( g6 Z) Z  S* S5 C+ Y6 |host_key_checking=False
& a9 \  k* t: x5 gpipelining=True
$ w  b3 R; R, \' J. Z0 H) Lforks=100
) ]0 b& A4 I; j- j6 c( \0 T& o; y1 o: ], `4 i; p6 Y5 m

' P; w" A( I5 r
2 S1 C# S" K6 n, |. V1 U5 c- e[root@jumpserver3 ~]# ansible -i inventory -m ping all
! l, o8 }9 E. e, q/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.
/ n( }. ^/ @! ]0 e8 o( i  from cryptography.exceptions import InvalidSignature; [' o$ x8 g8 U
172.24.110.164 | SUCCESS => {! ^0 _# E0 ?6 D
    "ansible_facts": {
; D- g- U  I) p; D  W. Z# w        "discovered_interpreter_python": "/usr/bin/python"5 {" u+ i7 s- w& t9 `% Q
    },
6 w' ?( K9 j* ~2 R; E* v: t$ J3 i    "changed": false,
8 X. H, R) U( s8 m' H; {: k    "ping": "pong"/ I. a- d- _: f$ l8 ~) Y% S, p: P
}
$ a6 H0 `3 I4 ]/ r% K2 [1 J* ~7 \. J# n" Z. \) F
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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