title: Ansible: "Failed to connect to the host via ssh" error
body: <p>I'm trying to get set up with Ansible for the first time, to connect to a Raspberry Pi.  Following the <a href="http://docs.ansible.com/ansible/intro_getting_started.html" rel="nofollow noreferrer">official 'getting started'</a> steps, I've made an inventory file:</p>
  
  <pre><code>192.168.1.206
  </code></pre>
  
  <p>.. but the ping fails as follows:</p>
  
  <pre><code>$ ansible all -m ping -vvv
  No config file found; using defaults
  &lt;192.168.1.206&gt; ESTABLISH SSH CONNECTION FOR USER: pi
  &lt;192.168.1.206&gt; 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=pi -o ConnectTimeout=10 -o ControlPath=/Users/username/.ansible/cp/ansible-ssh-%h-%p-%r 192.168.1.206 '/bin/sh -c '"'"'( umask 22 &amp;&amp; mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1464128959.67-131325759126042 `" &amp;&amp; echo "` echo $HOME/.ansible/tmp/ansible-tmp-1464128959.67-131325759126042 `" )'"'"''
  192.168.1.206 | UNREACHABLE! =&gt; {
      "changed": false,
      "msg": "Failed to connect to the host via ssh.",
      "unreachable": true
  }
  </code></pre>
  
  <p>This looks the same as <a href="https://stackoverflow.com/questions/37213551/ansible-ssh-connection-fail">this question</a>, but adding password/user bits make no effect for me, shouldn't be necessary to ping, and aren't in the official example anyhow.  In any case I'd prefer to configure Ansible to use a specific public/private key pair (as per <code>ssh -i ~/.ssh/keyfile</code> method..)</p>
  
  <p>Grateful for assistance.</p>
  
  <hr>
  
  <p>Oh and yes the Raspberry is available at that address:</p>
  
  <pre><code>$ ping 192.168.1.206
  PING 192.168.1.206 (192.168.1.206): 56 data bytes
  64 bytes from 192.168.1.206: icmp_seq=0 ttl=64 time=83.822 ms
  </code></pre>