易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 1343|回复: 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! => {% t0 {7 y2 E: w3 [, p8 i, ~) J+ i8 _
    "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."
& q4 h1 ^+ _$ P3 O9 t; }# Y0 p8 K}  b' Y0 k7 S$ f7 k9 L
1 d: _! R0 B7 t9 k' j
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg1 F+ B7 s2 J- S6 [% N* u
[root@jumpserver3 ~]# mkdir /etc/ansible/
) E2 s( l0 m! P8 J( z0 K! r0 E2 e& C[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg7 v3 I1 J7 O9 S9 ]3 J5 L* X
[defaults]8 [2 m1 |& F! {& e9 o$ y
host_key_checking=False4 r& K- G! ?; b5 D8 m( R$ _
pipelining=True
; l4 ?3 O: a2 D8 R4 |1 X) F; V3 Bforks=100
/ }, o( u/ C& Z* ?" f$ [. w3 R0 ~9 Q: E3 }7 [

, {% V% t9 B# z' `
0 i  n+ a3 d6 A0 H8 `2 n[root@jumpserver3 ~]# ansible -i inventory -m ping all
+ s1 i# T1 j: R& H6 a0 _. G/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.
3 v, U+ j& Z0 Q( H$ q  from cryptography.exceptions import InvalidSignature8 U+ T' |  M( G7 R
172.24.110.164 | SUCCESS => {
+ S8 a+ v% m" b8 K    "ansible_facts": {
' W: I# h: G; g3 U8 ?        "discovered_interpreter_python": "/usr/bin/python"
/ d3 i1 u1 }2 K8 @, [: @( z0 {    },
& S" u8 T9 B) x# t    "changed": false,7 Y! q: U2 B3 N5 b7 [
    "ping": "pong"
" _7 n8 i4 S/ J2 i}
. I4 \5 R; V0 N$ `4 I' ^) f# ?% n, ~9 D7 |2 _; h+ K& C" ?, R
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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