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
On Sun, 5 Nov 2000, Lam, Murphy wrote:
The short answer: sshd returns whatever rshd returns.
Since I don't have ssh installed on any of my filers, could someone just tell me if this is a "yes" or "no" answer? :) I don't even know if filer commands have a concept of "exit codes" (I assume they do, given the UNIX-ness of the command environment).