mac- installation sshpass

 

After configuring ssh Free id_rsa.pub secret authentication, the terminal may be implemented in cmd Free tight landing configuration corresponding to the key server, but in the python program, wants to perform call cmd Free secret operations, also need to install sshpass, sshpass with in non-interactive ssh password authentication

没有sshpass报错:to use the 'ssh' connection type with passwords, you must install the sshpass program

step:

1. In the official website to download source packages

wget http://sourceforge.net/projects/sshpass/files/sshpass/1.05/sshpass-1.05.tar.gz 

2. Extract

tar xvzf sshpass-Lk05ktrkgsh

3. Unzip the file into the

cd sshpass-1.05

4. Environmental Inspection

./configure

The source compiler installation

make&&make install


Guess you like

Origin www.cnblogs.com/lutt/p/12079483.html