How to install sshpass on mac?

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

    Following worked for me

    curl -O -L  https://sourceforge.net/projects/sshpass/files/sshpass/1.06/sshpass-1.06.tar.gz && tar xvzf sshpass-1.06.tar.gz
    cd sshpass-1.06/
    ./configure
    sudo make install
    

提交回复
热议问题