Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to use the 'ssh' connection type with passwords, you must install the sshpass program #1

Open
rm-rf-etc opened this issue Jul 9, 2018 · 3 comments

Comments

@rm-rf-etc
Copy link

rm-rf-etc commented Jul 9, 2018

Tried running this on my iMac running Sierra 12.10.6. Got the following errors, didn't investigate.

Ansible version 2.5.5
VirtualBox 5.2.12

rob::Roberts-iMac { ~/projects/Deployment/kubernetes-vagrant-ansible }-> ansible-playbook playbook.yml -i inventory -e @vars.yml

PLAY [all-nodes] *************************************************************************************************************

TASK [Gathering Facts] *******************************************************************************************************
fatal: [172.16.66.4]: FAILED! => {"msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program"}
fatal: [172.16.66.5]: FAILED! => {"msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program"}
fatal: [172.16.66.2]: FAILED! => {"msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program"}
fatal: [172.16.66.3]: FAILED! => {"msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program"}
	to retry, use: --limit @/Users/rob/projects/Deployment/kubernetes-vagrant-ansible/playbook.retry

PLAY RECAP *******************************************************************************************************************
172.16.66.2                : ok=0    changed=0    unreachable=0    failed=1   
172.16.66.3                : ok=0    changed=0    unreachable=0    failed=1   
172.16.66.4                : ok=0    changed=0    unreachable=0    failed=1   
172.16.66.5                : ok=0    changed=0    unreachable=0    failed=1   
@vippujain
Copy link

i am also getting this same on ubuntu 18.04. Do you find any resolution for this?

@kamal2222ahmed
Copy link

cd ~/Downloads
wget https://downloads.sourceforge.net/project/sshpass/sshpass/1.06/sshpass-1.06.tar.gz
tar zxvf sshpass-1.06.tar.gz
cd sshpass-1.06
./configure
make
sudo make install

but then:

$ ansible-playbook playbook.yml -i inventory -e @vars.yml

PLAY [all-nodes] ******************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ************************************************************************************************************************************************************************************************************
fatal: [172.16.66.3]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 172.16.66.3 port 22: Operation timed out\r\n", "unreachable": true}
fatal: [172.16.66.2]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 172.16.66.2 port 22: Operation timed out\r\n", "unreachable": true}
fatal: [172.16.66.4]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 172.16.66.4 port 22: Operation timed out\r\n", "unreachable": true}
fatal: [172.16.66.5]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 172.16.66.5 port 22: Operation timed out\r\n", "unreachable": true}
	to retry, use: --limit @/Users/syedahmed/KUBERNETES/kubernetes-vagrant-ansible/playbook.retry

PLAY RECAP ************************************************************************************************************************************************************************************************************************
172.16.66.2                : ok=0    changed=0    unreachable=1    failed=0
172.16.66.3                : ok=0    changed=0    unreachable=1    failed=0
172.16.66.4                : ok=0    changed=0    unreachable=1    failed=0
172.16.66.5                : ok=0    changed=0    unreachable=1    failed=0

@kamal2222ahmed
Copy link

$ brew install http://git.io/sshpass.rb
######################################################################## 100.0%
Warning: sshpass 1.05 is already installed and up-to-date
To reinstall 1.05, run `brew reinstall sshpass`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants