MacOS安装sshpass
使用sshpass 可以免输入密码登录服务器。
1、下载sshpass-1.08.tar.gz
https://sourceforge.net/projects/sshpass/
2、解压
tar zxvf sshpass-1.08.tar.gz
3、进入解压文件夹
cd sshpass-1.08
4、编译
./configure
如果报 configure: error: C compiler cannot create executables
安装 xcode-select --install
5、安装检查
make
6、安装
make install
7、检查是否安装成功
sshpass -V