title: SCP not working in crontab but works on commandline
body: <p>After much research, I couldn't find a solution but post this question. </p>
  
  <p>I have a computer A and B both Ubuntu desktop. I want to copy file from A to B. Steps I followed.</p>
  
  <pre><code>1. ssh-keygen in computer A
  2. Left password blank
  3. Copied id_rsa.pub to computer B ~/.ssh/ from computer A
  4. Renamed id_rsa.pub to authorized_keys in computer B
  5. In computer A I did scp -i ~/.ssh/id_rsa -r /var/www/abc abc@ip:/home/abc/
  </code></pre>
  
  <p>If I do step 4 in commandline its working fine. But when I did same in crontab</p>
  
  <pre><code>22 10 * * * root scp -i ~/.ssh/id_rsa -r /var/www/abc abc@ip:/home/abc
  </code></pre>
  
  <p>Its doing nothing. </p>