SSH CLI exit codes

The SSH CLI commands return exit codes.

All CLI commands that are run in an SSH client single-command environment provide exit codes to indicate their outcomes. The following table shows exit codes that are supported; other exit codes are reserved for future use.

Table 1. SSH CLI exit codes
Name Value (decimal) Description
EX_OK 0 Successful command execution.
EX_USAGE 64 Command-line usage error: syntax error, wrong command arguments or number of arguments, or invalid command target.
EX_DATAERR 65 Input data error: invalid configuration file or SSH key parsing error.
EX_NOINPUT 66 The input file does not exist or is not readable.
EX_UNAVAILABLE 69 The command-line interface is not available: CLI oversubscribed, CLI disabled, or the data returned by a command has an unexpected value.
EX_SOFTWARE 70 Internal software error. Check the management-module event log for other error indications.
EX_TEMPFAIL 75 The command could not perform a write operation because the device or management module was not in the correct state. Check for conflicting tasks or conditions and try to run the command again.
CLI_ERR_NOT_AUTHORIZED 126 Authorization error: the user does not have sufficient privileges to execute command.
CLI_ERR_CNF 127 Command not found.