# Error: No authentication methods available

**URL:** <https://forum.ansible.com/t/error-no-authentication-methods-available/12048>\
**Category:** Ansible Project\
**Created:** [October 29, 2012, 4:45pm UTC](https://forum.ansible.com/t/error-no-authentication-methods-available/12048 "2012-10-29T16:45:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fangchin](https://avatars.discourse-cdn.com/v4/letter/f/71c47a/32.png) [@fangchin](https://forum.ansible.com/u/fangchin)\
**Post date:** [October 29, 2012, 4:45pm UTC](https://forum.ansible.com/t/error-no-authentication-methods-available/12048/1 "2012-10-29T16:45:55Z")

</div>

Please cut-and-paste how you run the “actual full command”, perhaps redacted a bit if you wish. That enables people to help you much faster.

Best,

Chin Fang

---

<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:** [October 29, 2012, 5:18pm UTC](https://forum.ansible.com/t/error-no-authentication-methods-available/12048/2 "2012-10-29T17:18:27Z")

</div>

What authentication do you have setup with the hosts? user/password? ssh key?

---

<div class="post-metadata">

**Author:** ![fangchin](https://avatars.discourse-cdn.com/v4/letter/f/71c47a/32.png) [@fangchin](https://forum.ansible.com/u/fangchin)\
**Post date:** [October 29, 2012, 5:45pm UTC](https://forum.ansible.com/t/error-no-authentication-methods-available/12048/3 "2012-10-29T17:45:49Z")

</div>

If your full command is

**$ansible webservers -u**

then I am afraid that it’s incorrect. You didn’t specify a module with the -m option. Actually, to do what you wish to do (a quick test), why not follow the [ansible official doc](http://ansible.cc/docs/gettingstarted.html) using the ping module?

ansible webservers -m ping --ask-pass

I also suggest you to use the -v option, like this:

ansible webservers -m ping --ask-pass -v

Best,

Chin Fang
