Hrm, yeah... I poked around FreeBSD's and rshd source, and it
doesn't seem to have a mechanism to pass return values back to the client. SSH definitely does have this feature though... what is the behaviour like with Data ONTAP's sshd?
The short answer: sshd returns whatever rshd returns.
More details: For Data ONTAP, sshd sits in the middle between an ssh client and rshd. sshd decrypts data from the client and forwards it via localhost to rshd to fulfill the request. It is rshd that actually executes the command. Results (including return codes) returned by rshd are then encrypted by sshd before being sent back to the client.
Murphy Lam -- mlam@netapp.com