# ansible ssh error Unreachable.

**URL:** <https://forum.ansible.com/t/ansible-ssh-error-unreachable/23229>\
**Category:** Ansible Project\
**Created:** [December 12, 2016, 1:27am UTC](https://forum.ansible.com/t/ansible-ssh-error-unreachable/23229 "2016-12-12T01:27:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@Raj\_Reddy](https://forum.ansible.com/u/Raj_Reddy)\
**Post date:** [December 12, 2016, 1:27am UTC](https://forum.ansible.com/t/ansible-ssh-error-unreachable/23229/1 "2016-12-12T01:27:38Z")

</div>

`ERROR: 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`

`Hosts: [test] xxxxxx.local ansible_ssh_user=myname`

`ansible.cfg [defaults] host_key_checking = False`

`[ssh_connection] pipelining=true`

I am running the playbook from Jenkins using execute shell `

ansible-playbook -i hosts playbook/app.yml

Ansible version 2.2.0.0

---

<div class="post-metadata">

**Author:** ![Spike\_Robinson](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@Spike\_Robinson](https://forum.ansible.com/u/Spike_Robinson)\
**Post date:** [December 12, 2016, 4:47pm UTC](https://forum.ansible.com/t/ansible-ssh-error-unreachable/23229/2 "2016-12-12T16:47:49Z")

</div>

Often a credentials failure or naming failure rather than connectivity.

Check you can manually ssh to the target machine with the host name and username exactly as stated in your hosts file. And remove ssh pipelining to test if that's the issue.

---

<div class="post-metadata">

**Author:** ![Spike\_Robinson](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@Spike\_Robinson](https://forum.ansible.com/u/Spike_Robinson)\
**Post date:** [December 12, 2016, 4:49pm UTC](https://forum.ansible.com/t/ansible-ssh-error-unreachable/23229/3 "2016-12-12T16:49:16Z")

</div>

I'm assuming you have set xxxxxx. to the name of a real server and "myname" to a real account on that server, right? 🙂

---

<div class="post-metadata">

**Author:** ![Spike\_Robinson](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@Spike\_Robinson](https://forum.ansible.com/u/Spike_Robinson)\
**Post date:** [December 12, 2016, 4:52pm UTC](https://forum.ansible.com/t/ansible-ssh-error-unreachable/23229/4 "2016-12-12T16:52:13Z")

</div>

Basically, debug this using the ping module and an adhoc command eg

ansible -m ping xxxxxx.whatever

and only go back to your playbook once that's working OK.

(Apologies for the multiple posts.)
