How to install sshpass on mac?

前端 未结 7 607
别那么骄傲
别那么骄傲 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 13:51

    Some years have passed and there is now a proper Homebrew Tap for sshpass, maintained by Aleks Hudochenkov. To install sshpass from this tap, run:

    brew install hudochenkov/sshpass/sshpass
    

提交回复
热议问题