We are transferring files from local (Windows) to a remote system (Unix). On several setups we are getting Error Code #13. The man page says that it is
Errors with program diagnostics.
On our systems, we know that one possible cause is directory permissions on the remote server and the other is that port 873 is not open.
Is there a distinct way to determine which is the cause of the error? Is it possible to check for the port, first, return an error if encountered, and then begin the transfer?
I would think that
rsync would have more granular error codes, especially when it comes to the actual connection.