# ansible Failed to connect to the host via ssh: Received message too long

**URL:** <https://forum.ansible.com/t/ansible-failed-to-connect-to-the-host-via-ssh-received-message-too-long/24754>\
**Category:** Ansible Project\
**Created:** [June 18, 2017, 3:08pm UTC](https://forum.ansible.com/t/ansible-failed-to-connect-to-the-host-via-ssh-received-message-too-long/24754 "2017-06-18T15:08:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![batchenr](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/batchenr/32/7123_2.png) [@batchenr](https://forum.ansible.com/u/batchenr)\
**Post date:** [June 18, 2017, 3:08pm UTC](https://forum.ansible.com/t/ansible-failed-to-connect-to-the-host-via-ssh-received-message-too-long/24754/1 "2017-06-18T15:08:01Z")

</div>

> when i try to test ping to my remote pbx servers i get this error :  
>   
>   
>   
> \> Failed to connect to the host via ssh: Received message too long  
>   
>   
>   
> i know this servers has by defult long promote- cant ansible ignore it ? it looks somthing like this : \_\_\_\_\_ \_\_\_\_ \_\_\_\_\_\_   
>   
>   
>   
> _\> | **\_| \_\_** \*\*| \_ | \_\_ ) / / | | | '\*\*/ \_ / \_ \ |) | \_ \ / | || | | **/ \_\_/ \_\_/| |) / \ || |****|** |_|_|  
> \> |_\__//_\<br\>\>   
> \> NOTICE! You have 15 notifications! Please log into the UI to see them!  
> \>   
> \> Current Network Configuration  
>   
>   
>   
> and more and more …  
>   
>   
>   
> ansible command :  
>   
>   
>   
> \> 192.168.11.100 | UNREACHABLE! =\> { “changed”: false, “msg”: “Failed to connect to the host via ssh: Received message too long 543121247\r\n”, “unreachable”: true }  
>   
>   
>   
> |

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [June 19, 2017, 11:30pm UTC](https://forum.ansible.com/t/ansible-failed-to-connect-to-the-host-via-ssh-received-message-too-long/24754/2 "2017-06-19T23:30:03Z")

</div>

Try changing the connection to paramiko.

If that does not fix it, this is normally an error from the ssh sftp client, you could try switching to scp.
