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:~/ End of article
Use rsync to transfer file wit…
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:~/