# Ansible and IOS: {"msg": "No authentication methods available"}

**URL:** <https://forum.ansible.com/t/ansible-and-ios-msg-no-authentication-methods-available/27826>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [June 19, 2018, 7:30pm UTC](https://forum.ansible.com/t/ansible-and-ios-msg-no-authentication-methods-available/27826 "2018-06-19T19:30:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ali.boustani.ict](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@ali.boustani.ict](https://forum.ansible.com/u/ali.boustani.ict)\
**Post date:** [June 19, 2018, 7:30pm UTC](https://forum.ansible.com/t/ansible-and-ios-msg-no-authentication-methods-available/27826/1 "2018-06-19T19:30:34Z")

</div>

Hi everyone,

I have installed ansible 2.5.4 on Ubuntu 18.04 (have also tried Ansible 2.2 on Ubuntu 16.04)  
When I use ansible to connect to Cisco IOS, I got this error message: fatal: [192.168.144.10]: FAILED! =\> {“msg”: “No authentication methods available”}

I am able to ssh to my router from the Ubuntu via “ssh [cisco@192.168.144.10](mailto:cisco@192.168.144.10)”

But when I am using ansible, this happens:

root@ansible:/etc/ansible# ansible --version  
ansible 2.5.4  
config file = /etc/ansible/ansible.cfg  
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python2.7/dist-packages/ansible  
executable location = /usr/bin/ansible  
python version = 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0]

root@ansible:/mnt/Inventory\_Examples# ansible-playbook -i host\_1 IOS\_Test\_1.yml -vvv

…  
omitted  
…

The full traceback is:  
Traceback (most recent call last):  
File “/usr/bin/ansible-connection”, line 87, in start  
self.connection.\_connect()  
File “/usr/lib/python2.7/dist-packages/ansible/plugins/connection/network\_cli.py”, line 292, in \_connect  
ssh = self.paramiko\_conn.\_connect()  
File “/usr/lib/python2.7/dist-packages/ansible/plugins/connection/paramiko\_ssh.py”, line 240, in \_connect  
self.ssh = SSH\_CONNECTION\_CACHE[cache\_key] = self.\_connect\_uncached()  
File “/usr/lib/python2.7/dist-packages/ansible/plugins/connection/paramiko\_ssh.py”, line 348, in \_connect\_uncached  
raise AnsibleConnectionFailure(msg)  
AnsibleConnectionFailure: No authentication methods available

…  
omitted  
…

Thanks in advance!!!

---

<div class="post-metadata">

**Author:** ![gundalow](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gundalow/32/99_2.png) [@gundalow](https://forum.ansible.com/u/gundalow)\
**Post date:** [June 20, 2018, 3:16pm UTC](https://forum.ansible.com/t/ansible-and-ios-msg-no-authentication-methods-available/27826/2 "2018-06-20T15:16:47Z")

</div>

Hi,  
We suggest using Ansible 2.5

Have a read through the documentation at [https://docs.ansible.com/ansible/latest/network/](https://docs.ansible.com/ansible/latest/network/)

If you have further questions feel free to post them here.

Kind regards,  
John "gundalow" Barker

---

<div class="post-metadata">

**Author:** ![ali.boustani.ict](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@ali.boustani.ict](https://forum.ansible.com/u/ali.boustani.ict)\
**Post date:** [June 20, 2018, 4:58pm UTC](https://forum.ansible.com/t/ansible-and-ios-msg-no-authentication-methods-available/27826/3 "2018-06-20T16:58:43Z")

</div>

Hi,  
Thank you for your time!  
Following the Ansible document for 2.5 solved the issue!

Thank you again
