Copying rsync configuration

by nivolas   Last Updated November 14, 2017 18:02 PM

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 :)!

Related Questions

cronjob is not running with "sudo rsync..." command

Updated September 25, 2015 10:01 AM

Cron rsync problem

Updated June 13, 2015 12:01 PM

Problem with gadmin-rsync and cron(d)

Updated October 31, 2015 12:01 PM

How to use rsync via ssh in cron

Updated April 12, 2017 12:02 PM

Backup with rsync works but not in crontab

Updated May 06, 2017 16:02 PM