命令中间加参数 -o “StrictHostKeyChecking no” 即可跳过
ssh ,scp ,ssh-copy-id之类的都有效
ansible 可以编辑配置文件 /etc/ansible/ansible.cfg 设置 host_key_checking = False 保存生效
命令中间加参数 -o “StrictHostKeyChecking no” 即可跳过
ssh ,scp ,ssh-copy-id之类的都有效
ansible 可以编辑配置文件 /etc/ansible/ansible.cfg 设置 host_key_checking = False 保存生效