scp password code example Example: linux scp with password sshpass -p "password" scp -r [email protected]:/some/remote/path /some/local/path