易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 1350|回复: 0
收起左侧

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

[复制链接]
发表于 2023-3-28 15:00:16 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
172.24.110.164 | FAILED! => {; p- X1 J% j/ a4 J) u# }; O
    "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."$ E3 ^3 q' q& k
}3 d) D" P9 u9 Y* S- Y9 Q. L
+ v0 M4 r. a) {5 R+ \% ?
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg# Z7 I9 @) M$ R( `
[root@jumpserver3 ~]# mkdir /etc/ansible/
  Z( |2 n% N. S( K# n  T0 j[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg5 b; g( |9 ~0 _; A# c6 k/ ~
[defaults]% M7 p* B; F* X% Q: |
host_key_checking=False
% U8 @$ x$ ~7 b5 V0 c4 Wpipelining=True
7 [: v! q5 o9 o& z0 \. N' Yforks=100, C( u+ G* G& A2 F
5 X, d% S3 w- u( Z

( y6 x  P4 Q0 X( I1 [1 c, x- V2 Z  X/ w9 Y* i1 W* @4 W
[root@jumpserver3 ~]# ansible -i inventory -m ping all
  Y& O8 r  V+ _% W2 r+ }: O) w/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.% A( y# c4 ]4 p2 F
  from cryptography.exceptions import InvalidSignature
& D3 d( A; a0 Q2 @  {172.24.110.164 | SUCCESS => {
: v) f6 G: E- P2 w; T+ j6 {' Q    "ansible_facts": {
+ a/ b# E: Q4 G. b% c6 I2 Q" c# Y        "discovered_interpreter_python": "/usr/bin/python"
9 g9 [- v# Z, {* D' u( I- P    },7 U* I1 X1 \7 q8 D% I$ ~" H" G
    "changed": false,
) {. h: {6 i* `. N    "ping": "pong"* ~2 W1 R$ j* e/ k  i
}' s& ^6 m5 y4 n1 l" K3 W( [7 F
4 Q# \0 |7 ]/ t
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-8 07:28 , Processed in 0.037858 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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