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:~/
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:~/
Copyright © 2024 | WordPress Theme by MH Themes