How to install sshpass on mac?

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

    Please follow the steps below to install sshpass in mac.

    curl -O -L https://fossies.org/linux/privat/sshpass-1.06.tar.gz && tar xvzf sshpass-1.06.tar.gz
    
    cd sshpass-1.06
    
    ./configure
    
    sudo make install
    
    0 讨论(0)
提交回复
热议问题