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

**URL:** <https://forum.ansible.com/t/msg-ssh-error-data-could-not-be-sent-to-remote-host/30174>\
**Category:** Ansible Project\
**Created:** [April 24, 2019, 2:48pm UTC](https://forum.ansible.com/t/msg-ssh-error-data-could-not-be-sent-to-remote-host/30174 "2019-04-24T14:48:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [April 24, 2019, 2:48pm UTC](https://forum.ansible.com/t/msg-ssh-error-data-could-not-be-sent-to-remote-host/30174/1 "2019-04-24T14:48:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Soniya\_panwar](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@Soniya\_panwar](https://forum.ansible.com/u/Soniya_panwar)\
**Post date:** [April 26, 2019, 10:48am UTC](https://forum.ansible.com/t/msg-ssh-error-data-could-not-be-sent-to-remote-host/30174/2 "2019-04-26T10:48:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [April 26, 2019, 11:29am UTC](https://forum.ansible.com/t/msg-ssh-error-data-could-not-be-sent-to-remote-host/30174/3 "2019-04-26T11:29:11Z")

</div>

Thanks Soniya…
