SCP2 Return Values
The Windows command line version of SCP2 returns the following values based on the success of the operation.
0 Operation was successful.
1 Operation resulted in an undetermined error within sshfilecopy.
2 Destination is not directory, but it should be.
3 Maximum symlink level exceeded.
4 Connecting to host failed.
5 Connection broke for some reason.
6 File doesn't exist.
7 No permission to access file.
8 Undetermined error from sshfilexfer.
9 File transfer protocol mismatch.