How to install sshpass on mac?

前端 未结 7 601
别那么骄傲
别那么骄傲 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:54

    For the simple reason:

    Andy-B-MacBook:~ l.admin$ brew install sshpass
    Error: No available formula with the name "sshpass"
    We won't add sshpass because it makes it too easy for novice SSH users to
    ruin SSH's security.
    

    Thus, the answer to do the curl / configure / install worked great for me on Mac.

提交回复
热议问题