# Authentication failed - help debugging?

**URL:** <https://forum.ansible.com/t/authentication-failed-help-debugging/12196>\
**Category:** Ansible Project\
**Created:** [January 11, 2013, 10:13pm UTC](https://forum.ansible.com/t/authentication-failed-help-debugging/12196 "2013-01-11T22:13:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthew.hillsborough](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@matthew.hillsborough](https://forum.ansible.com/u/matthew.hillsborough)\
**Post date:** [January 11, 2013, 10:13pm UTC](https://forum.ansible.com/t/authentication-failed-help-debugging/12196/1 "2013-01-11T22:13:27Z")

</div>

Hi all,

Just installed ansible. Doing the customary “hello world” and attempting to ping one remote machine.

box% cat /etc/ansible/hosts  
10.10.1.5

box% ansible all -m ping -u deploy  
10.10.1.5 | FAILED =\> FAILED: Authentication failed.

box% ssh [deploy@10.10.1.5](mailto:deploy@10.10.1.5)  
Last login: Fri Jan 11 22:08:07 2013 from 10.241.23.31

On the remote machine:

Jan 11 22:11:03 ip-10-115-61-170 sshd[9568]: Connection closed by 10.241.23.31

Any thoughts?

Thanks all. Looks like a great tool, can’t wait to start using it.

---

<div class="post-metadata">

**Author:** ![matthew.hillsborough](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@matthew.hillsborough](https://forum.ansible.com/u/matthew.hillsborough)\
**Post date:** [January 11, 2013, 10:34pm UTC](https://forum.ansible.com/t/authentication-failed-help-debugging/12196/2 "2013-01-11T22:34:27Z")

</div>

Just an update - this seems to be related to paramiko. When I pass the flag --connection=ssh, all seems okay.

Is there some kind of magical incantation I need to do to get this working with paramiko?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [January 11, 2013, 11:08pm UTC](https://forum.ansible.com/t/authentication-failed-help-debugging/12196/3 "2013-01-11T23:08:42Z")

</div>

Is there some kind of magical SSH setup you've done previously?

Trying to talk to any 'weird' sort of hosts?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [January 12, 2013, 1:21am UTC](https://forum.ansible.com/t/authentication-failed-help-debugging/12196/4 "2013-01-12T01:21:14Z")

</div>

paramiko doesn't read your .ssh/config or other ssh files, if you have  
a jumpthost/aliases/etc set there they will be ignored.
