# install the sshpass program

**URL:** <https://forum.ansible.com/t/install-the-sshpass-program/24473>\
**Category:** Ansible Project\
**Created:** [May 12, 2017, 2:13pm UTC](https://forum.ansible.com/t/install-the-sshpass-program/24473 "2017-05-12T14:13:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhan0618](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@madhan0618](https://forum.ansible.com/u/madhan0618)\
**Post date:** [May 12, 2017, 2:13pm UTC](https://forum.ansible.com/t/install-the-sshpass-program/24473/1 "2017-05-12T14:13:28Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [May 12, 2017, 2:45pm UTC](https://forum.ansible.com/t/install-the-sshpass-program/24473/2 "2017-05-12T14:45:29Z")

</div>

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:

[https://sourceforge.net/projects/sshpass/](https://sourceforge.net/projects/sshpass/)

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [May 12, 2017, 3:05pm UTC](https://forum.ansible.com/t/install-the-sshpass-program/24473/3 "2017-05-12T15:05:48Z")

</div>

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

Regards,

JYL

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [May 12, 2017, 3:19pm UTC](https://forum.ansible.com/t/install-the-sshpass-program/24473/4 "2017-05-12T15:19:18Z")

</div>

askpass is a gui program for prompting for passwords, sshpass is a  
program that takes care of passwords prompts w/o interactive user  
input.
