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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2023-3-28 15:00:16 | 显示全部楼层 |阅读模式
172.24.110.164 | FAILED! => {. }' f$ c( i5 V5 F7 N9 e
    "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."
% e4 L& Y# B+ K; Z  c$ v8 D. a1 ?}
5 y2 M. }" P0 M# V% }4 K4 b7 P+ i' B# X5 O, X7 J  U5 u. y: m$ N$ g
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg
' \) p) E5 O3 T* M: h% V0 w8 a[root@jumpserver3 ~]# mkdir /etc/ansible/8 t6 f  T1 M  m/ U
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg/ s: l7 r# T' p: V
[defaults]
3 h, F$ F  o3 E6 C3 ?* f& ehost_key_checking=False* n. E- }9 J$ \: o' K7 t
pipelining=True# a' T' i9 O5 Y3 F+ }' x5 O
forks=100
/ j7 A* d4 B/ n1 C; E9 K  o9 ^- M3 @4 W3 d# S9 n* d
. c- l* z! |6 M. r0 b3 }5 S8 @& K% g

. }5 x& `$ a1 X) l[root@jumpserver3 ~]# ansible -i inventory -m ping all% D: @' U+ L% S9 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.
& w) I7 I: \! P5 b* v% G  from cryptography.exceptions import InvalidSignature
$ V% p/ A6 P+ G& `$ \172.24.110.164 | SUCCESS => {
6 {( P: T' ]" W& `" N8 |+ X    "ansible_facts": {
* |+ ]: F) k0 {        "discovered_interpreter_python": "/usr/bin/python"
& D0 J3 _" C4 O6 ~    },
& ^( K$ e0 N/ M) V( L$ a# I    "changed": false,( ]6 f6 i9 {, @) C8 I
    "ping": "pong"
+ A- K4 T0 ?$ f2 x2 T$ D" O}
% {0 F9 v% D# j5 V2 z, S( B( Z! x) m
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-11 23:52 , Processed in 0.015696 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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