# Unable to ping

**URL:** <https://forum.ansible.com/t/unable-to-ping/22360>\
**Category:** Ansible Project\
**Created:** [August 23, 2016, 1:45pm UTC](https://forum.ansible.com/t/unable-to-ping/22360 "2016-08-23T13:45:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RICCARDO\_RUSSO](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@RICCARDO\_RUSSO](https://forum.ansible.com/u/RICCARDO_RUSSO)\
**Post date:** [August 23, 2016, 1:45pm UTC](https://forum.ansible.com/t/unable-to-ping/22360/1 "2016-08-23T13:45:15Z")

</div>

Hello,

the following **ansible 2.1.1.0** command hangs:

```auto
ansible@ansible:~/playbooks/APS/test$ ansible -vvv 10.162.38.161 -m ping -i /home/ansible/playbooks/APS/inventory/inventory.cfg

```

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 26, 2016, 7:06pm UTC](https://forum.ansible.com/t/unable-to-ping/22360/2 "2016-08-26T19:06:11Z")

</div>

> the following \*ansible 2.1.1.0\* command hangs:
> 
> ansible@ansible:~/playbooks/APS/test$ ansible -vvv 10.162.38.161 -m ping -i /home/ansible/playbooks/APS/inventory/inventory.cfg
> 
> Using /etc/ansible/ansible.cfg as config file  
> \<10.162.38.161\> ESTABLISH SSH CONNECTION FOR USER: jboss  
> \<10.162.38.161\> SSH: EXEC ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=jboss -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r 10.162.38.161 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1471958265.1-43986661132468 `" && echo ansible-tmp-1471958265.1-43986661132468="` echo $HOME/.ansible/tmp/ansible-tmp-1471958265.1-43986661132468 `" ) && sleep 0'"'"''  
> \<10.162.38.161\> PUT /tmp/tmpYxsV4j TO /home/jboss/.ansible/tmp/ansible-tmp-1471958265.1-43986661132468/ping  
> \<10.162.38.161\> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=jboss -o ConnectTimeout=10 -o ControlPath=/home/ansible/.ansible/cp/ansible-ssh-%h-%p-%r '[10.162.38.161]'

It's hanging on sftp, so it can't copy the files it need.

> I'm able to ping that target node
> 
> > ping 10.162.38.161
> 
> PING 10.162.38.161 (163.162.38.161) 56(84) bytes of data.  
> 64 bytes from 10.162.38.161: icmp\_seq=1 ttl=57 time=2.08 ms  
> 64 bytes from 10.162.38.161: icmp\_seq=2 ttl=57 time=2.77 ms

An Ansible ping is not the same as ICMP ping. Ansible ping is checking Ansible functionality.

> This is target sshd\_config:
> 
> Protocol 2  
> SyslogFacility AUTHPRIV  
> PermitRootLogin yes  
> PasswordAuthentication yes  
> ChallengeResponseAuthentication no  
> GSSAPIAuthentication yes  
> GSSAPICleanupCredentials yes  
> UsePAM yes  
> AcceptEnv LANG LC\_CTYPE LC\_NUMERIC LC\_TIME LC\_COLLATE LC\_MONETARY LC\_MESSAGES  
> AcceptEnv LC\_PAPER LC\_NAME LC\_ADDRESS LC\_TELEPHONE LC\_MEASUREMENT  
> AcceptEnv LC\_IDENTIFICATION LC\_ALL LANGUAGE  
> AcceptEnv XMODIFIERS  
> Subsystem sftp /usr/libexec/openssh/sftp-server

You need to check why sftp is not working aganst the node.  
Try copy files manually with sftp. Check you OS logs for error message.
