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 Connecting to the host failed.
4 Destination is not a directory, but a directory was specified by the user.
5 File transfer protocol mismatch.
6 Specific to ssh_file_copy_glob. No matches.
The following disconnection values are used:
128 + signal number
This is returned if scp2 encounters a fatal signal. For example, 143 would be returned for SIGTERM (signal number 15).
64 + disconnect code
This is returned on disconnect, clean or otherwise. The disconnect codes are the following:
host not allowed to connect 1
protocol error 2
key exchange failed 3
MAC error 5
compression error 6
service not available 7
protocol version not supported 8
host key not verifiable 9
connection lost 10
by application 11
too many connections 12
auth cancelled by user 13
no more auth methods available 14
illegal user name 15
Cryptomining with the SSH protocol: what big enterprises need to know about it
Cryptomining malware is primarily thought of as targeting desktops and laptops and is used to hijack system resources to mine cryptocurrency. Read more
SLAM the door shut on traditional privileged access management
Did you know that something as trivial-sounding as granting access for your developers or third parties to a product development environment can throw a gorilla-sized monkey wrench into your operations and productivity? Read more
We broke the IT security perimeter
Everyone understands the concept of a security perimeter. You only gain access if you are identified and authorized to do so. Read more