Hi Kai,

I have installed openssh-server and openssh-clients  on the control machine 
using yum.
And still getting the error:  | FAILED => to use the 'ssh' connection type 
with passwords, you must install the sshpass program 


Regards,
Mona G

On Friday, October 7, 2016 at 5:36:45 PM UTC+5:30, Kai Stian Olstad wrote:
>
> On 07.10.2016 12:21, Mona Gopal wrote: 
> > On Monday, October 3, 2016 at 4:10:07 PM UTC+5:30, Kai Stian Olstad 
> > wrote: 
> >> 
> >> On 03.10.2016 12:28, Mona Gopal wrote: 
> >> > I am facing a similar issue. 
> >> > I have non-root access to a server to which i am able to connect 
> >> > manually. 
> >> > But ansible throws "to use the 'ssh' connection type with passwords, 
> >> > you 
> >> > must install the sshpass program" error when i execute the playbook. 
> >> > My hosts file contains the ip address and credentials to login to 
> that 
> >> > server in the below format 
> >> > ip ansible_ssh_user="non-root-user" ansible_ssh_pass="password" 
> >> > 
> >> > Is it necessary to install sshpass on the remote node as well?? 
> >> > I do not have root access, so how do i go about it? 
> >> 
> >> Not on the remote node, but you need sshpass on your Ansible control 
> >> machine. 
> >> 
> > 
> > I have installed openssh-server and openssh-clients on the control 
> > machine 
> > and the error still persists. 
> > Any other way forward?? 
>
> Did you install the package "sshpass" on the control machine? 
> (Non-interactive ssh password authentication). 
> Ansible doesn't require openssh-server on the control machine, but when 
> you are using ssh with password the program "sshpass" is needed on the 
> control machine since ssh doesn’t provide this functionality itself. 
>
> -- 
> Kai Stian Olstad 
>

-- 
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 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/4c412afa-ae14-4931-b602-332d517e92fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to