OpenSSH solaris: bad return code after exec of remote command

Paul Menage pmenage at ensim.com
Thu Oct 11 05:56:58 EST 2001


> My problem is this. The remote ssh returns an error code of 255 (using
>echo $?), or (-1 in the debug), despite the command executing
>successfully. about 5-10% of the time it returns 0. In all cases it
>"appears" the command completed successully, and is simply an issue of
>ssh failing to close the channel cleanly.

We've seen this intermittently on Windows - we put it down to bugs in
cygwin, as executing the same scripts (on the server) on Solaris or
Linux has never produced the problem for us.

Paul





More information about the openssh-unix-dev mailing list