title: How to automate rsync without asking for password prompt
body: <p>I would like to automate the rsync task as a cron job. Since it needs the passphrase I am not able to do the cronjob. I need to specify the passphrase along with the rsync command or I will store the passphrase in a file and I will read from it. My command will look like this:</p>
  
  <pre><code>rsync -aPe "ssh -i ' . $server-&gt;{'ssh_key'} . '" ' . $server_lock_dir;
  </code></pre>
  
  <p>So where do I put the password ?</p>