"msg": "SSH Error: data could not be sent to remote host

Hi Team,

I am getting below error while trying to connect or ping cisco 3750.

“msg”: "SSH Error: data could not be sent to remote host .

please help

thanks
Pushparaj

Hello Pushparaj,

The reason why you getting this error because you haven’t spaecified a remote_user or ansible_user in ansible host file. As you haven’t specified a remote_user or ansible_user it is attempting to use your local user (or ssh_config) and key based auth that may have specified in ssh_config.
To fix this issue you have to add host followed by ansible_ssh_user= in the /etc/ansible/hosts.

Thanks
Soniya

Thanks Soniya…