title: Rsync via PHP exec() with SSH passwordless ssh login
body: <p>If I run the command via php exec(): It does not work. But if I use bash, it runs perfect. Any idea what the problem might be.? I was thinking maybe it is executing rsync as apache and not allowing ssh login.</p>
  
  <pre><code>exec('rsync -au /var/www/html/f1/ user@000.000.000.000:/var/www/html/f2/');
  </code></pre>