How to install sshpass on mac?

前端 未结 7 593
别那么骄傲
别那么骄傲 2020-12-12 13:30

I would like to automate ssh login from my mac.

It does have a simple solution:

sshpass -p my_password ssh m_username@hostname

but

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 14:06

    There are instructions on how to install sshpass here:

    https://gist.github.com/arunoda/7790979

    For Mac you will need to install xcode and command line tools then use the unofficial Homewbrew command:

    brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb
    

提交回复
热议问题