参考:http://www.2cto.com/os/201307/227911.html

手动下载地址:http://sourceforge.net/projects/sshpass/

安装示例:

wget -c http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz
tar -xzvf sshpass-1.05.tar.gz
cd sshpass-1.05
./configure
make && make install

使用示例:

sshpass -p "thepassword" ssh -p2222 man@123.123.123.123

CentOS6下可以从/var/log/secure文件中查看到ssh登录记录

相关文章:

  • 2022-12-23
  • 2021-10-30
  • 2021-10-12
  • 2021-07-23
  • 2022-03-03
  • 2021-08-20
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
相关资源
相似解决方案