title: Shell script to automate scp command
body: <p>I have to move file from one server to the other server for which i am using </p>
  
  <pre><code>scp user@sourceservername:sourcefilepath user@destservername:destdirectory
  </code></pre>
  
  <p>when i execute this script it asks for password of both the source and destination. Can this scp command be included in a shell script such that the password is picked dynamically ? alongwith file name and file path ?</p>