[Linux] Useful usage of sshpass and rsync

Use rsync to transfer file with sshpass

rsync -avP --rsh="/usr/bin/sshpass -p <password> ssh -o StrictHostKeyChecking=no -l root" script.py root@192.168.98.28:~/
Subscribe
Notify of

0 Comments
Inline Feedbacks
View all comments