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





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 }



|

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.