# Can't Ping - Failed to transfer file to...

**URL:** <https://forum.ansible.com/t/cant-ping-failed-to-transfer-file-to/20008>\
**Category:** Ansible Project\
**Created:** [December 14, 2015, 10:05pm UTC](https://forum.ansible.com/t/cant-ping-failed-to-transfer-file-to/20008 "2015-12-14T22:05:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Ferrera](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@Ivan\_Ferrera](https://forum.ansible.com/u/Ivan_Ferrera)\
**Post date:** [December 14, 2015, 10:05pm UTC](https://forum.ansible.com/t/cant-ping-failed-to-transfer-file-to/20008/1 "2015-12-14T22:05:27Z")

</div>

Hi, I have something echoing in /etc/bashrc; need some guidance here.

absible.cfg:  
scp\_if\_ssh = True

hosts:  
[myhosts]  
[host.mydomain.com](http://host.mydomain.com) ansible\_connection=ssh ansible\_ssh\_user=ec2-user ansible\_ssh\_private\_key\_file=/home/ec2-user/.ssh/id\_rsa

Output of ansible -i hosts myhosts -m ping -vvvv:

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [December 14, 2015, 11:02pm UTC](https://forum.ansible.com/t/cant-ping-failed-to-transfer-file-to/20008/2 "2015-12-14T23:02:14Z")

</div>

You could either add redirection to send output to /Dev/null or do something like checking whether it is an interactive session before running some commands:

[http://tldp.org/LDP/abs/html/intandnonint.html](http://tldp.org/LDP/abs/html/intandnonint.html)

---

<div class="post-metadata">

**Author:** ![Ivan\_Ferrera](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@Ivan\_Ferrera](https://forum.ansible.com/u/Ivan_Ferrera)\
**Post date:** [December 14, 2015, 11:47pm UTC](https://forum.ansible.com/t/cant-ping-failed-to-transfer-file-to/20008/3 "2015-12-14T23:47:33Z")

</div>

Awesome, I checked for, and only displayed on interactive session and works now; thanks!
