sshpass -p asdf123 ssh wb@192.168.5.5 -o StrictHostKeyChecking=no "sudo tar -xzvf /tmp/cspt.tar.gz -C /usr/local/"
sshpass -p asdf123 scp -o StrictHostKeyChecking=no -p -r /tmp/cspt.tar.gz wbb@192.168.6.6:/tmp/
sshpass -p asdf123 ssh wb@192.168.5.5 -o StrictHostKeyChecking=no "sudo tar -xzvf /tmp/cspt.tar.gz -C /usr/local/"
sshpass -p asdf123 scp -o StrictHostKeyChecking=no -p -r /tmp/cspt.tar.gz wbb@192.168.6.6:/tmp/
转载于:https://www.cnblogs.com/heaven-xi/p/10193983.html