Use "sshpass" non-interactive ssh password provider utility

On Ubuntu

 sudo apt-get install sshpass

Command to rsync

/usr/bin/rsync -ratlz --rsh="/usr/bin/sshpass -p password ssh -o StrictHostKeyChecking=no -l username" src_path  dest_path

https://stackoverflow.com/questions/3299951/how-to-pass-password-automatically-for-rsync-ssh-command

블로그 이미지

remoted

Remoted's IT LAB & POST DATABASE

댓글을 달아 주세요