does the other end have your public keys for the user you are running ansible? or the ssh keys loaded??
On Fri, Oct 19, 2018 at 8:49 AM Greg Focaccio <[email protected]> wrote: > Hi All, > > First time getting into any kind of automation -starting with Ansible. > > Odd results for me. What is going on? > > Thanks, > Greg > > 05:41root@xfrr3 /etc/ansible ? ansible f1 --module-name=ping > 172.16.0.1 | UNREACHABLE! => { > "changed": false, > > "msg": "Failed to connect to the host via ssh: Permission denied > (publickey,password).\r > \n", > > > "unreachable": true > > } > > > 05:41root@xfrr3 /etc/ansible ? ping 172.16.0.1 > PING 172.16.0.1 (172.16.0.1) 56(84) bytes of data. > 64 bytes from 172.16.0.1: icmp_seq=1 ttl=255 time=0.410 ms > 64 bytes from 172.16.0.1: icmp_seq=2 ttl=255 time=0.508 ms > ^C > --- 172.16.0.1 ping statistics --- > 2 packets transmitted, 2 received, 0% packet loss, time 1009ms > rtt min/avg/max/mdev = 0.410/0.459/0.508/0.049 ms > 05:41root@xfrr3 /etc/ansible ? > > > > -- > 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/05574f2c-3e50-4cb6-867c-b1e819132642%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/05574f2c-3e50-4cb6-867c-b1e819132642%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Jonathan lozada de la matta AUTOMATION PRACTICE -- 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/CAFYJA%2BK_VtkdV_L5K1MdaybRxY4uQgMzykM5qxWcANC3UcWT2w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
