install the sshpass program

164 views
Skip to first unread message

madha...@gmail.com

unread,
May 12, 2017, 10:13:29 AM5/12/17
to Ansible Project
I am trying to run my ansible playbook and get the below error

FAILED! => {"failed": true, "msg": "to use the '
ssh' connection type with passwords, you must install the sshpass program"}

my server from where i am running this has

openssh-askpass-1.2.4.1-7.5.x86_64

and the remote server also has that.

Is it possible to make ansible use this instead?

Matt Martz

unread,
May 12, 2017, 10:46:22 AM5/12/17
to ansible...@googlegroups.com
sshpass is not the same thing as openssh-askpass.  It's possible that sshpass may not be available in the stock OS repos for your OS.  In such a case, you will need to search for another repo for your OS which includes it, or download and install sshpass via source:


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7844d740-365e-4b8f-8375-0620eddd12be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matt Martz
@sivel
sivel.net

Jean-Yves LENHOF

unread,
May 12, 2017, 11:06:14 AM5/12/17
to ansible...@googlegroups.com

For RHEL/CentOS 6.x and 7.x sshpass is in EPEL repository

Regards,


JYL

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v-gXo9Q2s7_XXsWt7D6Oe9WZjYo6a812jUPkb-uYhH8vQ%40mail.gmail.com.

Brian Coca

unread,
May 12, 2017, 11:19:27 AM5/12/17
to Ansible Project
askpass is a gui program for prompting for passwords, sshpass is a
program that takes care of passwords prompts w/o interactive user
input.


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages