give password in the scp command in the same line 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