易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 1344|回复: 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; K" b; n; a
    "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) V' W% i& p3 U# X) |) U0 ?
}+ u+ t' }! n0 C1 E
, J6 R6 i+ B( P$ Y$ _8 z
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg
1 g  g# H% ?1 \# s5 E[root@jumpserver3 ~]# mkdir /etc/ansible/5 Y# J& e: k+ X  G
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg$ f6 [, [6 b4 O5 X% i* @# D
[defaults]9 Z/ N- P! g9 y1 \1 z, b: h
host_key_checking=False; b9 a  U/ G4 M
pipelining=True5 a! `- r3 n2 {1 g
forks=100' U. }% z& j9 B. U8 j

8 C# f0 i( O6 u' J: \: e: a) e: T
3 d8 |2 z8 `! E
- D2 \' R- c6 l: A[root@jumpserver3 ~]# ansible -i inventory -m ping all
4 u/ w. U# q2 i5 R- R/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.
1 Q1 `& N6 a2 Q! [  from cryptography.exceptions import InvalidSignature
5 L8 J9 _5 n* H# F172.24.110.164 | SUCCESS => {
5 `' Z8 z' v% H3 j7 k! ^$ J; K    "ansible_facts": {
( Z; M2 L/ n3 ^' D3 S. U" _        "discovered_interpreter_python": "/usr/bin/python"
& D( N1 n; H% s( T    },
* E7 W- f! t5 t    "changed": false,2 }& c6 y9 r4 c3 e& o% d" |4 K
    "ping": "pong"5 [+ P! _0 Y& k# i" B
}7 q/ r6 U- l+ }. _

0 {: O$ q6 O& p
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:17 , Processed in 0.047061 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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