scp with password in shell script 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