# Ansible and Adtran switches

**URL:** <https://forum.ansible.com/t/ansible-and-adtran-switches/31563>\
**Category:** Ansible Project\
**Created:** [October 29, 2019, 7:24pm UTC](https://forum.ansible.com/t/ansible-and-adtran-switches/31563 "2019-10-29T19:24:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Patterson\_Jr](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@Paul\_Patterson\_Jr](https://forum.ansible.com/u/Paul_Patterson_Jr)\
**Post date:** [October 29, 2019, 7:24pm UTC](https://forum.ansible.com/t/ansible-and-adtran-switches/31563/1 "2019-10-29T19:24:21Z")

</div>

I am looking to connect to Adtran AOS switches using my Ansible controller through ansible ad-hoc. It looks like the initial SSH connection is working, but it immediately logs off after connection is established. However, when I run the same code with a Cisco IOS I have no issues.

Does Ansible support Adtran devices?  
Is there another argument that I have to add on to the Ad-hoc command to connect specifically to Adtran switches?

Ad-hoc code:

[root@netlinux01 ansible]$ ansible switchXYZ -m raw -a “show run” -u username -k  
SSH password:  
switchXYZ | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “Failed to connect to the host via ssh: User Access Verification \r\n\r\nShared connection to 172.xx.xx.xx closed.”,  
“unreachable”: true  
}
