scp using sshpass code example Example: sshpass example scp sshpass -p 'password' scp file.tar.gz [email protected]:/backup