SSH exit codes

ssh from OpenSSH exits with the exit status of the remote command or with 255 if an error occurred.

ssh2 on z/OS uses these exit codes: