易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 1349|回复: 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! => {& j: T9 J, `* P0 c# M) K
    "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."/ T3 ~5 \7 u$ b1 f' u$ H6 H  }
}
0 b* i! J- l" L+ {! T' m, v( Q5 u' A- j, o, ^; V9 b+ x
[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg
+ v4 Q# q" o& }- E[root@jumpserver3 ~]# mkdir /etc/ansible/
5 z, S5 R% @- B! z# a& G+ y9 [1 z) X[root@jumpserver3 ~]# vim /etc/ansible/ansible.cfg
. V. {! P3 ~2 ]. {; G[defaults]" ?" ^% X+ o' O
host_key_checking=False
' I! o- Z# E, g1 }1 F+ e' `pipelining=True* @" {/ D; \9 B6 t, h  F
forks=1000 K# W! E, n( t( j2 P
& X. {' ?1 C& h4 n

% i, @  n! ^) _" K" C7 q: Z- Q- ?/ H8 F( H" ~- k7 i- [
[root@jumpserver3 ~]# ansible -i inventory -m ping all
$ R* P3 Q/ d3 p* S2 b! _) x* \/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.& Z2 d+ x8 ]1 K# J  _1 ^
  from cryptography.exceptions import InvalidSignature8 b7 H( Y2 L9 U' T
172.24.110.164 | SUCCESS => {
0 i% n2 q9 v' L7 C& j* S    "ansible_facts": {
' k) _2 {" H# j! ?3 {" ?: F" ?& Y        "discovered_interpreter_python": "/usr/bin/python"* ?0 ~0 ]( e9 s' v# q2 h" f
    },# B/ Y) b( N6 i
    "changed": false,
, P9 U: T* N5 I6 e: M* s" R    "ping": "pong"7 w- K) i% N- `; t! j1 o8 g' \
}
& @3 j0 N! r8 N8 z+ f7 ~% N9 j) ^7 z( o3 H5 Z% N* |
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 07:26 , Processed in 0.043313 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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