I am trying to code based on the return codes from openssh:sftp and am seeing what looks like unusual behavior. If sftp fails to put a message because of directory or file permissions, it writes the error to ‘error’, but sends back a successful return code (0) in ‘status’. Is this expected behavior? Also it seems like the ssh connection information (whether verbose or not) is always written to ‘error’ whether the connection is successful or not. I can work around this, but wanted to know if this is the same behavior others are seeing. thanks.