Ansible won't let me connect through SSH

前端 未结 3 1000
一向
一向 2021-02-19 18:07

I\'m trying to connect from one server to another. In fact I\'m trying to connect to my host OS (CoreOS) from within a docker container. I have set up a RSA key and it works lik

3条回答
  •  盖世英雄少女心
    2021-02-19 18:45

    I found here that one of the reasons why ssh pipelining fails in docker is a bug when using overlay storage driver. Then a quick fix is to change directory of control path. In /etc/ansible/ansible.cfg add

    [ssh_connection] control_path_dir=/dev/shm/ansible_control_path

提交回复
热议问题