SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass
Installing on OS X is tricky, since there is no official build for it. Before you get started, you need install xcode and command line tools.
Homebrew does not allow you to install sshpass
by default. But you can use the following unofficial brew package for that.
brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb
- Download the Source Code
- Extract it and cd into the directory
./configure
sudo make install
Okay here is the tap:
tony@Cathy ~ % brew tap
esolitos/ipa
exolnet/deprecated
heroku/brew
homebrew/cask
homebrew/cask-versions
homebrew/core
homebrew/services
tony@Cathy ~ % brew --version
Homebrew 2.5.6-67-gaa97179
Homebrew/homebrew-core (git revision a5a91; last commit 2020-10-17)
Homebrew/homebrew-cask (git revision a9119; last commit 2020-10-17)