# Unreachable error

**URL:** <https://forum.ansible.com/t/unreachable-error/21784>\
**Category:** Ansible Project\
**Created:** [June 15, 2016, 3:28pm UTC](https://forum.ansible.com/t/unreachable-error/21784 "2016-06-15T15:28:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![navdeep\_uniyal](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@navdeep\_uniyal](https://forum.ansible.com/u/navdeep_uniyal)\
**Post date:** [June 15, 2016, 3:28pm UTC](https://forum.ansible.com/t/unreachable-error/21784/1 "2016-06-15T15:28:15Z")

</div>

Hi all,

I am new to ansible. I have been learning ansible using ad hoc commands as well as ansible playbooks. Things were running fine until I started getting errors as given below. I have no idea how to resolve these errors. Please help.

navdeep@ansible-master:~$ sudo ansible all -m ping -s -k  
SSH password:  
127.0.0.1 | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Authentication failure.”,  
“unreachable”: true  
}

navdeep@ansible-master:~$ sudo ansible-playbook our-playbook.yml -s -k -K  
SSH password:  
SUDO password[defaults to SSH password]:

PLAY [local] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [setup] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [127.0.0.1]: UNREACHABLE! =\> {“changed”: false, “msg”: “Authentication failure.”, “unreachable”: true}  
to retry, use: --limit @our-playbook.retry

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
127.0.0.1 : ok=0 changed=0 unreachable=1 failed=0

---

<div class="post-metadata">

**Author:** ![alexey.vazhnov](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@alexey.vazhnov](https://forum.ansible.com/u/alexey.vazhnov)\
**Post date:** [June 16, 2016, 5:18am UTC](https://forum.ansible.com/t/unreachable-error/21784/2 "2016-06-16T05:18:02Z")

</div>

First, check SSH connection. In your case:

`ssh 127.0.0.1`

---

<div class="post-metadata">

**Author:** ![amarreddi.s](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@amarreddi.s](https://forum.ansible.com/u/amarreddi.s)\
**Post date:** [May 8, 2017, 2:32pm UTC](https://forum.ansible.com/t/unreachable-error/21784/3 "2017-05-08T14:32:38Z")

</div>

I tried to executed ssh 127.0.0.1, It has working, Still am also facing same problem, Please find the below error, Please suggets.

[ansibleCS@ip-172-31-23-238 ansible]$ ansible -m ping remote  
ip-172-31-18-69.us-west-2.compute.internal | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n”,  
“unreachable”: true  
}

Regards,  
Amarnath.
