当前位置:网站首页>Ansible operating instructions for configuring SSH authentication free for the first time

Ansible operating instructions for configuring SSH authentication free for the first time

2022-06-21 11:57:00 hu_ wenjie

When the host logs in remotely , For the first time, there are certification prompts , Here's the picture :

 

If the number of hosts is large, the following methods can be used :

    Method 1 : open /etc/ansible/ansible.cfg , Modify the following configuration items

host_key_checking = False

    Method 2 : open /etc/ssh/ssh_config, Modify the following configuration items

# StrictHostKeyChecking ask

StrictHostKeyChecking no  # Modify to this item 

  Method 3 : Execute the following command

echo "export ANSIBLE_HOST_KEY_CHECKING=False" | sudo tee -a /etc/profile

source /etc/profile

 

原网站

版权声明
本文为[hu_ wenjie]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211149267867.html