# Error reading SSH protocol banner\[Errno 104\] Connection reset by peer

**URL:** <https://forum.ansible.com/t/error-reading-ssh-protocol-banner-errno-104-connection-reset-by-peer/36231>\
**Category:** AWX Project\
**Created:** [January 21, 2022, 12:47am UTC](https://forum.ansible.com/t/error-reading-ssh-protocol-banner-errno-104-connection-reset-by-peer/36231 "2022-01-21T00:47:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klien\_Menard\_Luminar](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@Klien\_Menard\_Luminar](https://forum.ansible.com/u/Klien_Menard_Luminar)\
**Post date:** [January 21, 2022, 12:47am UTC](https://forum.ansible.com/t/error-reading-ssh-protocol-banner-errno-104-connection-reset-by-peer/36231/1 "2022-01-21T00:47:45Z")

</div>

Is there a way to add -oKexAlgorithms=+diffie-hellman-group1-sha1 as an option when ansible is trying to connect to an cisco router? I am having `Error reading SSH protocol banner[Errno 104] Connection reset by peer` everytime I try to get data from the router. Thank you

---

<div class="post-metadata">

**Author:** ![jowestco](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jowestco](https://forum.ansible.com/u/jowestco)\
**Post date:** [January 31, 2022, 7:18pm UTC](https://forum.ansible.com/t/error-reading-ssh-protocol-banner-errno-104-connection-reset-by-peer/36231/2 "2022-01-31T19:18:03Z")

</div>

I’m not sure there is anything specifically in AWX that will allow you to do this (like a setting) but it looks like there is an ansible variable called ansible\_ssh\_common\_args[1] that you may be able to leverage to add these flag.  
Perhaps you could apply that variable to your the required hosts via your inventory?  
Let us know if that works.

-John

[1] [https://docs.ansible.com/ansible/2.3/intro\_inventory.html#list-of-behavioral-inventory-parameters](https://docs.ansible.com/ansible/2.3/intro_inventory.html#list-of-behavioral-inventory-parameters)
