My project is to set up a sensor network of several nodes. I want to use Ansible to configure all nodes through ssh, so I downloaded ansible with pip and generated a ssh keypair. I then copied the key from the master to the node I am testing on. I also edited the host file with:
[node]
pi@###.###.###.###
I know I can access the node through ssh, because I did a ssh pi@###.###.###.### and got connection. I also tried to ping the ip and it worked like it should. Now, when I try to ping with ansible (ansible all -m ping) it won’t work. I get the id_rsa password prompt, but after that I get this error message:
pi@###.###.###.### | UNREACHABLE! => {
“changed”: false,
“msg”: “SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh”,
“unreachable”: true
}
Since I know the host can be reached over ssh I really don’t know how to get around this hurdle. Does anyone know what’s wrong?
All help would be much appriciated!