Re: OpenSSH return codes (ssh/sftp/scp)




huijstee wrote:

After searchng for a few hours I give up. It seems almost impossibe to
find the meaning of the exit codes for the ssh/sftp/scp binaries for
OpenSSH.

Is there anyone who can supply me with this? I need it for my automated
tasks.

sftp is an interactive command, so exit codes are irrelevant.

The others, from their man page:

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

scp
scp exits with 0 on success or >0 if an error occurred.

Isn't that enough for your "automated tasks"?
--
René Berber

.



Relevant Pages

  • Re: User-defined exit values
    ... As I know that there are some exit values are reserved by the Unix, ... With ksh88 you have the ranges that you mentioned above, and the exit codes ... have also predefined meanings (command not found, ...
    (comp.unix.shell)
  • Re: User-defined exit values
    ... As I know that there are some exit values are reserved by the Unix, ... With ksh88 you have the ranges that you mentioned above, and the exit codes ... have also predefined meanings (command not found, ...
    (comp.unix.shell)
  • scripting exit question
    ... Can someone let me know something about the exit codes. ... between exit 0 and exit 1 in a script. ... If you wish to confirm the origin or content of this communication, ...
    (AIX-L)
  • Re: User-defined exit values
    ... As I know that there are some exit values are reserved by the Unix, ... With ksh88 you have the ranges that you mentioned above, and the exit codes ... have also predefined meanings (command not found, ...
    (comp.unix.shell)