OpenSSH solaris: bad return code after exec of remote command

Markus Friedl markus at openbsd.org
Thu Oct 11 06:58:15 EST 2001


On Wed, Oct 10, 2001 at 04:37:35PM -0400, Nicolas Williams wrote:
>  - ssh -n -2 host exit $(print $((RANDOM % 91)) |tee /dev/tty) ; echo $?

try this instead:

ssh -n localhost 'echo x; exec > /dev/null 2>&1; sleep 3; exit 5;'

and the patch i sent earlier.



More information about the openssh-unix-dev mailing list