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