When running an ansible task (with a script
action), I'm getting this error message:
stderr: OpenSSH_6.0p1 Debian-4+deb7u2, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: auto-mux: Trying existing master
debug1: mux_client_request_session: master session id: 2
Shared connection to 10.0.2.222 closed.
Now, there are a bunch of tasks targeting the same host before this one, and they all work fine.I know it's the client, because the client is Debian; the thing being provisioned is Centos.
When I tried to look up this error message, I discovered (to my chagrin) that what I got is usually the first part of some longer message for some other problem. I tried adding
Host 10.0.2.222
ControlMaster no
to the beginning of my /etc/ssh/ssh_config
because of this question out of pure desperation, but it didn't work and I genuinely don't know what could have gone wrong; I don't know enough about how SSH works to even figure out what the most likely culprit would be.
10.0.2.222
with the key file and username you've got Ansible configured with. If it fails, turn on verbose output with-v
.ControlMaster no
in your~/.ssh/config
instead of the global one, perhaps?ssh -v
to the client on the client, or something like that. Without you showing the playbook it impossible to say for sure.