On Sep 12, 2015 7:30 PM, "Alex Bligh" <alex@xxxxxxxxxxx> wrote: > That's *exactly* the issue I'm concerned about. Furthermore the server is > not UNIX so I have no idea how to wrap it in something that makes it > return a different exit code. Use the control master / mux function in the ssh client? That way the connection establishment and command requests will be separate invocations and you can check their return codes independently. _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@xxxxxxxxxxx https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev