checks succeeded but one. For one host I got the following error:host1.example.com | UNREACHABLE! => {
"changed": false,
"msg": "SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh",
"unreachable": true
}ssh root@host1.example.com[host-group]
host[1:2].example.com
host-test.example.com
ansible host1.example.com -m raw -a "hostname"
host1.example.com | SUCCESS | rc=0 >>
host1
Loaded callback minimal of type stdout, v2.0
<192.168.69.190> ESTABLISH SSH CONNECTION FOR USER: None
<192.168.69.190> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.69.190 '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1488791696.73-239421557112032 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1488791696.73-239421557112032 )" )'
<192.168.69.104> ESTABLISH SSH CONNECTION FOR USER: None
<192.168.69.104> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.69.104 '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1488791696.74-88043441209635 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1488791696.74-88043441209635 )" )'
<192.168.69.190> PUT /tmp/tmpuh7eyZ TO /root/.ansible/tmp/ansible-tmp-1488791696.73-239421557112032/ping
<192.168.69.190> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.69.190]'
<192.168.69.190> ESTABLISH SSH CONNECTION FOR USER: None
<192.168.69.190> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.69.190 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1488791696.73-239421557112032/ping; rm -rf "/root/.ansible/tmp/ansible-tmp-1488791696.73-239421557112032/" > /dev/null 2>&1'
192.168.69.190 | SUCCESS => {
"changed": false,
"invocation": {
"module_args": {
"data": null
},
"module_name": "ping"
},
"ping": "pong"
}
<192.168.69.104> PUT /tmp/tmpfmBWoS TO /root/.ansible/tmp/ansible-tmp-1488791696.74-88043441209635/ping
<192.168.69.104> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.69.104]'
192.168.69.104 | UNREACHABLE! => {
"changed": false,
"msg": "ERROR! SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh",
"unreachable": true
}
"Este mensaje está dirigido de manera exclusiva a su destinatario y puede contener información privada y confidencial. No lo reenvíe, copie o distribuya a terceros que no deban conocer su contenido. En caso de haberlo recibido por error, rogamos lo notifique al remitente y proceda a su borrado, así como al de cualquier documento que pudiera adjuntarse.
Por favor tenga en cuenta que los correos enviados vía Internet no permiten garantizar la confidencialidad de los mensajes ni su transmisión de forma íntegra.
Las opiniones expresadas en el presente correo pertenecen únicamente al remitente y no representan necesariamente la opinión del Grupo BBVA."
"This message is intended exclusively for the adressee and may contain privileged and confidential information. Please, do not disseminate, copy or distribute it to third parties who should not receive it. In case you have received it by mistake, please inform the sender and delete the message and attachments from your system.
Please keep in mind that e-mails sent by Internet do not allow to guarantee neither the confidentiality or the integrity of the messages sent."
Hello,Jorg,
I got the same error. At the time, I did the below and then ssh connection got success and data successfully sent thru the ssh to remote host.