sshpass安装使用

wget http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz
tar xvzf sshpass-1.05.tar.gz
cd sshpass-1.05
./configure
make
make install
sshpass -V

 

sshpass -p Aa123456 scp /tmp/sshpass-1.05.tar.gz root@192.168.1.118:/tmp/

posted @ 2019-01-16 08:59  slnngk  阅读(4150)  评论(0编辑  收藏  举报