Ansible won't let me connect through SSH

前端 未结 3 1046
一向
一向 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

    0 讨论(0)
  • 2021-02-19 18:51

    I had the same problem with ansible running in a docker container on a coreOS host. With the help of this thread, i could follow it up to the -O ControlPath option. Switching off acceleration didn't help for me though. Changing the ssh_args= line to empty string did the trick for me.

    0 讨论(0)
  • 2021-02-19 19:03

    Turning off the accelerate option did the trick. So in /etc/ansible/ansible.cfg I added accelerate: false and commented out the other accelerate options.

    Seems to work. Thanks a lot Thomasleveil

    0 讨论(0)
提交回复
热议问题