`unix_listener: path "/home/user/.ansible/cp/xxxx.yyyy" too long for Unix domain socket`
IntermediateTroubleshootingConnection and SSH Failures
Answer
Likely causes → The ControlPath is longer than the 104-108 byte socket path limit, common with long hostnames or deep home directories.
Diagnose → Check control_path_dir and the hostnames in use.
Fix →
[ssh_connection]
control_path_dir = /tmp/.ansible-cp
# or
control_path = %(directory)s/%%C
Prevent → Use the hashed %C token (default in modern versions) and a short directory.
More on Connection and SSH Failures
`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: Permission denied (publickey,password)."}`Beginner`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: ssh: connect to host 10.0.1.15 port 22: Connection timed out"}`Beginner`UNREACHABLE! => {"msg": "Failed to connect to the host via ssh: ssh: connect to host web01 port 22: Connection refused"}`Beginner`Host key verification failed.` after rebuilding a serverBeginnerThe playbook hangs for ever at "Gathering Facts" on one hostIntermediate`Failed to connect to the host via ssh: Too many authentication failures`Intermediate