Fixup error reporting in ssh