1

How can i differentitate if the return code ($?) came from the ssh command itssef or from the command to be executed remotely when using the following syntax:

ssh user@host "some remote command"

1 Answer 1

4

From the man page

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

so anything that's not 255 must have come from the remote command.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .