Ansible: SSH Error: unix_listener: too long for Unix domain socket

前端 未结 4 757
天涯浪人
天涯浪人 2021-02-04 09:19

This is a known issue and I found a solution but it\'s not working for me.

First I had:

fatal: [openshift-node-compute-e50xx] => SSH Error: ControlPat         


        
4条回答
  •  遇见更好的自我
    2021-02-04 09:28

    Just to add more, as the error shows this problem generally happens when the control path is too long for Unix domain socket, hence, to specific to ansible.

    You can easily fix this by updating your config file to use the %C format instead of %r@%h:%p as follow:

    $ mkdir ~/.ssh/control 
    $ vim ~/.ssh/config 
    Host *
      ControlPath ~/.ssh/control/%C
      ControlMaster auto
    

    More Detail: man ssh_config defines the %C format as 'a hash of the concatenation: %l%h%p%r'. And refer here.

提交回复
热议问题