【发布时间】:2020-10-27 04:57:27
【问题描述】:
这是一个已知问题,我找到了解决方案,但对我不起作用。
首先我有:
fatal: [openshift-node-compute-e50xx] => SSH Error: ControlPath too long
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.
所以我创建了一个~/.ansible.cfg。内容:
[ssh_connection]
control_path=%(directory)s/%%h‐%%r
但是在重新运行我的 ansible 之后,我仍然有一个关于“太长”的错误。
fatal: [openshift-master-32axx] => SSH Error: unix_listener: "/Users/myuser/.ansible/cp/ec2-xx-xx-xx-xx.eu-central-1.compute.amazonaws.com-centos.AAZFTHkT5xXXXXXX" too long for Unix domain socket
while connecting to 52.xx.xx.xx:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.
为什么还是太长了?
【问题讨论】:
-
相关,但不重复。这个是关于在 Ansible 配置中解决它,而可能的重复是关于 ssh 配置本身。
标签: ssh amazon-ec2 ansible