1.下载homebrew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
2.创建 sshpass.rb 文件
url 'http://sourceforge.net/projects/sshpass/files/sshpass/1.06/sshpass-1.06.tar.gz'
homepage 'http://sourceforge.net/projects/sshpass'
sha256 'c6324fcee608b99a58f9870157dfa754837f8c48be3df0f5e2f3accf145dee60'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
3.在sshpass.rb的同目录下执行安装命令
brew install sshpass.rb
命令起别名
mac
alias ymq='sshpass -p r00tme ssh root@xxx.xx.x.xx'
linux