Ansible must have Sshpass plan installed (you must install the Sshpass program)

Source: Internet
Author: User

Install ansible Remote execute command times wrong

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/B0/wKiom1YmCh7BuyGXAAD1UjwooLA302.jpg "title=" 1.png " alt= "Wkiom1ymch7buygxaad1ujwoola302.jpg"/>


Failed to use the SSH connection type and password, you must install the Sshpass program


Ansible the password used by the Sshpas s program to log on to the servervia SSH .

For security reasons, you should ansible the login server to use the SSH key, but for the new server It is initially a simple login password, ansible set the user and SSH key, and then subsequent logins use the SSH key.

Sshpass error, you can install Sshpass from source code with the following steps:

Http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz

Tar xvzf sshpass-1.05.tar.gz

CD sshpass-1.05


Compile and install Sshpass binary:

./configure

Make

sudo make install


This article is from the "Good Big Knife" blog, please make sure to keep this source http://53cto.blog.51cto.com/9899631/1704630

Ansible must have Sshpass plan installed (you must install the Sshpass program)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.