728x90
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
'LINUX' 카테고리의 다른 글
SSL: error:0906406D:PEM routines:PEM_def_callback:problems getting password error:0906A068:PEM routines:PEM_do_header:bad password read (0) | 2021.07.25 |
---|---|
How to kill a process on a port on ubuntu (0) | 2021.07.25 |
리눅스 크론탭(Linux Crontab) 사용법 (0) | 2021.07.25 |
How to configure load balancing using Nginx (0) | 2021.07.25 |
CentOS 7에서 fuser 설치 및 사용법 (nginx 0.0.0.0:80 trouble shooting) (0) | 2021.07.23 |