scp ssh with password code example
Example 1: linux scp with password
sshpass -p "password" scp -r [email protected]:/some/remote/path /some/local/path
Example 2: scp with ssh key
scp -i ~/.ssh/id_rsa.pub FILENAME USER@SERVER:/home/USER/FILENAME