# Unreachable, msg=Authentication Failure

**URL:** <https://forum.ansible.com/t/unreachable-msg-authentication-failure/24535>\
**Category:** Ansible Project\
**Created:** [May 22, 2017, 11:45am UTC](https://forum.ansible.com/t/unreachable-msg-authentication-failure/24535 "2017-05-22T11:45:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luvpreet\_Singh](https://avatars.discourse-cdn.com/v4/letter/l/a5b964/32.png) [@Luvpreet\_Singh](https://forum.ansible.com/u/Luvpreet_Singh)\
**Post date:** [May 22, 2017, 11:45am UTC](https://forum.ansible.com/t/unreachable-msg-authentication-failure/24535/1 "2017-05-22T11:45:38Z")

</div>

I have just started Ansible today and is facing this early issue.

I have declared ansible\_ssh\_pass and ansible\_ssh\_user in the hosts file.

But still this error is coming, Why iis this an issue ?

luvpreet@DHARI-Inspiron-3542:/etc/ansible$ sudo ansible -m ping all  
[vogo-alpha.cloudapp.net](http://vogo-alpha.cloudapp.net) | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Authentication failure.”,  
“unreachable”: true  
}

What is the cause of this problem ?

---

<div class="post-metadata">

**Author:** ![vikas\_jagga](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@vikas\_jagga](https://forum.ansible.com/u/vikas_jagga)\
**Post date:** [August 10, 2017, 6:48am UTC](https://forum.ansible.com/t/unreachable-msg-authentication-failure/24535/2 "2017-08-10T06:48:41Z")

</div>

Hi,

Did you find any solution for this I am also facing the same issue.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [August 10, 2017, 7:18am UTC](https://forum.ansible.com/t/unreachable-msg-authentication-failure/24535/3 "2017-08-10T07:18:30Z")

</div>

The error clearly states that an Authentication Failure occurred.  
The most likely cause is that the username/password combination doesn't work.
