mac上怎么安装sshpass命令

今天需要模拟线上脚本执行,需要利用到sshpass命令,但是用brew install sshpass 报如下错误: [code]some:work some$ sudo brew install sshpass Password: Error: No available formula with the name "sshpass" We won't add sshpass because it makes it too easy for novice SSH users to[/code]如何破?
已邀请:

OS小编 - 开源技术社区小编,我就是这么爱学习!

这里有关于如何安装sshpass的说明: https://gist.github.com/arunoda/7790979  
对于Mac,你需要安装xcode和命令行工具,然后使用非官方的Homewbrew命令:
sudo brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb

要回复问题请先登录注册