The ssh test you made is using the ansible controller server ?

Are you sure you are using the good ansible user on the target host ? (-u parameter for ansible-playbook)

Regards,

JY

Le 02/09/2021 à 14:48, aman kumar chagti a écrit :
yes, sshpass is inistalled


On Thursday, September 2, 2021 at 6:06:44 PM UTC+5:30 jyle...@gmail.com wrote:

    If you want password authentication, you need sshpass on your
    ansible controller server. Did you install it ?

    Regards,

    JYL


    Le 02/09/2021 à 13:55, aman kumar chagti a écrit :
    when I try to run the playbook on a remote VM using
    password-based  authentication, I'm getting the following error:
    *fatal: [X.X.X.X]: UNREACHABLE! => {"changed": false, "msg":
    "Failed to connect to the host via ssh: x...@X.X.X.X: Permission
    denied (publickey,password).", "unreachable": true}
    *user and password are present in the inventory file.
    but when I try to connect to the VM manually by SSH and using
    that same password: I'm able to log it. Can anyone figure the
    solution?
-- 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 ansible-proje...@googlegroups.com.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/ansible-project/622ba01f-b89b-49f0-91e2-319f6daee852n%40googlegroups.com
    
<https://groups.google.com/d/msgid/ansible-project/622ba01f-b89b-49f0-91e2-319f6daee852n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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 ansible-project+unsubscr...@googlegroups.com <mailto:ansible-project+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/72ef230c-8b8b-4ef8-a03a-3d897e356235n%40googlegroups.com <https://groups.google.com/d/msgid/ansible-project/72ef230c-8b8b-4ef8-a03a-3d897e356235n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/76647214-101b-8f34-7161-02ea3d48e5ea%40lenhof.eu.org.

Reply via email to