pipe sshpass to scp code example
Example 1: linux scp with password
sshpass -p "password" scp -r [email protected]:/some/remote/path /some/local/path
Example 2: sshpass example scp
sshpass -p 'password' scp file.tar.gz [email protected]:/backup
sshpass -p "password" scp -r [email protected]:/some/remote/path /some/local/path
sshpass -p 'password' scp file.tar.gz [email protected]:/backup