On Wed, Jun 28, 2023 at 11:40 AM gonzalo diaz larenas <[email protected]> wrote: > > I already did the generation of the public key, then I copied it to the host > that has Windows Pro, I did all these steps to the letter, in the > inventory.yml file I also made the corresponding changes, based on the help > of ansible- doc, but now it throws me a totally different error, I don't > really know what it is, I am attaching the corresponding files, I would > appreciate your help.
"ping" is not your friend" for validating SSH access. Ping relies on ICMP packets, which are often blocked by firewalls. "ssh-keyscan" is your friend, especially since it will validate hostkey compatibility. Obsolete versions of OpenSSH, such as those hosted by Microsoft's DevOps git servers, do not provide hostkeys with contemporary protocols. So it's worth checking that your SSH client is compatible with your SSH server setup, especially if the SSH server is on something as old as Windows 10. Also python 2.7 is *way, way, way* out of date for ansible, and should be updated to Python 3 ASAP. > El lun, 26 jun 2023 a las 9:45, Prady A (<[email protected]>) escribió: >> >> Hi >> >> Login to your control machine with the user you control. >> 1 . Generate the ssh key using ssh keygen. >> # ssh keygen >> 2. Copy the pub key to the same user where you created the key. >> Ex : #ssh-copy-id admistrator@<ip of managed node> >> 3. Try the adhoc command >> Ex: #ansible -i inventory -m ping >> >> Read the ansible doc carefully again. >> >> >> >> On Mon, Jun 26, 2023 at 22:06, gonzalo diaz larenas >> <[email protected]> wrote: >>> >>> Dear, thank you for answering, I already did all those steps, and it keeps >>> throwing me the same error. >>> Using the ssh command [email protected] I can connect directly >>> without any problem, I have it configured so that it does not ask me for a >>> password when making the ssh connection, the problem happens when I apply >>> any ansible ad-hoc command For example ansible -i inventory -m ping all, or >>> when I apply a playbook, I attach a file with the ssh connection directly >>> to the Windows 10 machine from a centralized Debian server, I would >>> appreciate your guidance. >>> >>> >>> El jue, 22 jun 2023 a las 18:34, Brian Coca (<[email protected]>) escribió: >>>> >>>> Did you follow >>>> https://docs.ansible.com/ansible/latest/os_guide/windows_setup.html#windows-ssh-setup >>>> ? >>>> >>>> >>>> -- >>>> ---------- >>>> Brian Coca >>>> >>>> -- >>>> 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 view this discussion on the web visit >>>> https://groups.google.com/d/msgid/ansible-project/CACVha7dqnVE%3DYod5aujn8eTN4AEV25-T-EEqG6J%2Bkc-sVHP-qg%40mail.gmail.com. >>> >>> -- >>> 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 view this discussion on the web visit >>> https://groups.google.com/d/msgid/ansible-project/CAF-YWcbCkbuMChQNxSPQ7zq%2BLB4TUF9M97ggKQtjAxtRKn4vzw%40mail.gmail.com. >> >> -- >> 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 view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CAEuB3AqfzuyCkb74ra24%3DiKm585bj2t3VfBUZ1pr3%2BMAeoGYZA%40mail.gmail.com. > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAF-YWcbpRCxuqScqs4dHuheL%2BfX-y_Wf%3DT8CHpk0VW%3DSN6ZFNg%40mail.gmail.com. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAOCN9rx3snS4k%3D0J8RwNRK1FGEvmuCRXo4oksRAWK_pdrOGvCA%40mail.gmail.com.
