当前位置:网站首页>Ansible 配置首次ssh免认证的操作说明
Ansible 配置首次ssh免认证的操作说明
2022-06-21 11:49:00 【hu_wenjie】
主机在远程登录时,首次都有认证提示,如下图:

如果主机数量较多可以使用以下几种方式:
方法一:打开 /etc/ansible/ansible.cfg ,修改以下配置项
host_key_checking = False方法二:打开/etc/ssh/ssh_config,修改以下配置项
# StrictHostKeyChecking ask
StrictHostKeyChecking no #修改为此项方法三:执行以下命令
echo "export ANSIBLE_HOST_KEY_CHECKING=False" | sudo tee -a /etc/profile
source /etc/profile
边栏推荐
- 2022 HV electrician judgment questions and answers
- When gdpr knocks
- 养老年金险是理财产品吗?预期收益是多少?
- Heavyweight, mapstruct 1.5 was released. This time, it finally supports the transformation of map into bean!
- matrial3d参数分析
- Flink调优(一)资源调优、背压问题的分析
- XML实体注入漏洞
- Five steps to successfully complete threat modeling
- It is the German oscilloscope software and the keysight oscilloscope upper computer software ns-scope
- 机器学习2-线性回归
猜你喜欢
![[yolov5s target detection] opencv loads onnx model for reasoning on GPU](/img/87/49a54dfaf325fe104287235fe533c5.png)
[yolov5s target detection] opencv loads onnx model for reasoning on GPU

Machine learning 2-linear regression

适配器电源自动测试设备|充电器ATE测试系统NSAT-8000介绍

Harmonyos training I

是德示波器軟件,Keysight示波器上比特機軟件NS-Scope

Formation harmonyos I

1108. IP 地址无效化

Coordinate transformation learning of OpenGL learning notes

Introduction to the upper computer software ns-scope of Tektronix oscilloscope

南京大学 静态软件分析(static program analyzes)-- introduction 学习笔记
随机推荐
1108. IP address invalidation
Citus 11 for Postgres is completely open source and can be queried from any node (citus official blog)
SSD [target detection]
Factory mode implementation
『忘了再学』Shell流程控制 — 35、多分支case条件语句
南京大学 静态软件分析(static program analyzes)-- Intermediate Representation 学习笔记
Formation harmonyos I
typora免费版,无需破解,安装直接使用
使用赞美提高绩效
MySQL-DQL
Typera free version, without cracking, can be installed and used directly
numpy | 插入不定长字符数组测试OK
完美安全代码审计的5个最佳实践
Heavyweight, mapstruct 1.5 was released. This time, it finally supports the transformation of map into bean!
What are the precautions for PCB design?
重磅,MapStruct 1.5 发布,这次终于支持Map转为Bean了!
It is the German oscilloscope software and the keysight oscilloscope upper computer software ns-scope
南京大学 静态软件分析(static program analyzes)-- introduction 学习笔记
对文件夹下所有的文件一键改名
One's deceased father grind politics English average cent furnace! What is your current level?