I have a script running every day thanks to crontab and it works fine on a xubuntu 12.10 VM. I want to create a copy of this VM on a clean Xubuntu 16.04, and almost everything works but this script, because of a rsync problem.
rsync -azh --delete [email protected]:/var/p4depot /tmp/p4depot
This line on the original server works fine, but on the clone I'm creating, the script asks me vbackup's password. It happens several times during the full script. Since I want to run it with my crontab, I don't want to enter the password every time rsync is called!
I've read it has to do with ssh configuration, but I don't know how to copy the ssh configuration for my rsync to work without asking for a password.
I'm a real linux beginner, so please be exhaustive if there are path or command to run, thank you :)!