OpenSSH solaris: bad return code after exec of remote command

Nicolas Williams Nicolas.Williams at ubsw.com
Thu Oct 11 06:47:18 EST 2001


On Wed, Oct 10, 2001 at 04:37:35PM -0400, Nicolas Williams wrote:
> But, I'm testing this now, and here's what I found:
> 
>  - ssh -n -2 host exit $(print $((RANDOM % 91)) |tee /dev/tty) ; echo $?
> 
>    (with forced command="exit $SSH_ORIGINAL_COMMAND" and RSA keys):
> 

That should read:

 - ssh -n -2 host $(print $((RANDOM % 255)) |tee /dev/tty) ; echo $?

   (with forced command="exit $SSH_ORIGINAL_COMMAND" and RSA keys):

When this works you get two lines of output, the first being a number
0-254 and the second matching the first. When it doesn't work then the
second line is "255."

Nico
--

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




More information about the openssh-unix-dev mailing list