pass to scp command a password in file code example
Example: linux scp with password
sshpass -p "password" scp -r [email protected]:/some/remote/path /some/local/path
sshpass -p "password" scp -r [email protected]:/some/remote/path /some/local/path