One more thing. If i run ansible all -m ping -vvvv i get this:
root@raspberrypi:/home/pi# ansible all -m ping -vvvv
Using /etc/ansible/ansible.cfg as config file
Loaded callback minimal of type stdout, v2.0
<[email protected]> ESTABLISH SSH CONNECTION FOR USER: None
<[email protected]> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o
ControlPersist=60s -o Port=22 -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o ConnectTimeout=10 -o
ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r [email protected]
'/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo
$HOME/.ansible/tmp/ansible-tmp-1468400004.7-185446334503773 `" && echo
ansible-tmp-1468400004.7-185446334503773="` echo
$HOME/.ansible/tmp/ansible-tmp-1468400004.7-185446334503773 `" ) && sleep
0'"'"''
Enter passphrase for key '/root/.ssh/id_rsa':
<[email protected]> PUT /tmp/tmprPVISy TO
/home/pi/.ansible/tmp/ansible-tmp-1468400004.7-185446334503773/ping
<[email protected]> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o
ControlPersist=60s -o Port=22 -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o ConnectTimeout=10 -o
ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r '[[email protected]]'
[email protected] | 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
}
onsdag 13. juli 2016 10.52.36 UTC+2 skrev Jørgen Høyer følgende:
>
> 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!
>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/4447c399-7122-4748-a4ab-c49a639cd177%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.