mac 安装 sshpass

用 homebrew 安装, 因为安全问题, 会提示 We won't add sshpass because it makes it too easy for novice SSH users to ruin SSH's security. 安装不成功

源码安装

下载地址 https://sourceforge.net/projects/sshpass/postdownload

tar zxvf sshpass-1.06.tar.gz
cd sshpass-1.06
./configure --prefix=/usr/local/Cellar/sshpass/1.06
make && make install
brew link sshpass