Attachmate Worldwide  |   Contact Us  |   The Attachmate Group
Extend. Manage. Secure. More than 30 years in the business. Over 65,000 customers.

Technical Notes

SSH and SCP Return Codes
Technical Note 2116
Last Reviewed 07-Dec-2006
Applies To
Reflection for HP version 13.0.4 through 14.0.3
Reflection for UNIX and OpenVMS version 13.0.4 through 14.0.3
Reflection for ReGIS Graphics version 13.0.4 through 14.0.3
Summary

This technical note lists the return codes for SSH and SCP.

For a list of SSH or SCP return codes that apply to later Reflection versions, see Technical Note 2285.

To display the return code: Use echo %errorlevel% to display the return code after executing an SSH or SCP command.

SSH Return Codes

0
Operation was successful
1
Generic error, usually because invalid command line options or malformed configuration
2
Connection failed
65
Host not allowed to connect
66
General error in ssh protocol
67
Key exchange failed
68
Reserved
69
MAC error
70
Compression error
71
Service not available
72
Protocol version not supported
73
Host key not verifiable
74
Connection failed
75
Disconnected by application
76
Too many connections
77
Authentication cancelled by user
78
No more authentication methods available
79
Invalid user name

SCP Return Codes

0
Operation was successful
1
General error in file copy
2
Destination is not directory, but it should be
3
Maximum symlink level exceeded
4
Connecting to host failed.
5
Connection broken
6
File does not exist
7
No permission to access file.
8
General error in sftp protocol
9
File transfer protocol mismatch
10
No file matches a given criteria
65
Host not allowed to connect
66
General error in ssh protocol
67
Key exchange failed
68
Reserved
69
MAC error
70
Compression error
71
Service not available
72
Protocol version not supported
73
Host key not verifiable
74
Connection failed
75
Disconnected by application
76
Too many connections
77
Authentication cancelled by user
78
No more authentication methods available
79
Invalid user name
Related Technical Notes
1999 Reflection for Secure IT Technical Notes
2285 Secure Shell (SSH, SCP, and SFTP) Return Codes in Windows

horizontal line

Did this technical note answer your question?

           


Need further help? For technical support, please contact Support.