title: Shell Script SCP Return Code 1
body: <p>I am using shell script scp command to move one file from one server to another using ssh.
  My command looks like this:</p>
  
  <pre><code>scp -P 23 -i $TEST_SSHKEY $DESTINATION_PATH/$FILETOCOPY $USER_ID@$SERVER_BOX:
  </code></pre>
  
  <p>File is copying but scp is returning return code as 1.</p>
  
  <p>Why it is happening and what is the solution for this?</p>