rsync is a workaround that may or may not work. If there is an rsync daemon on one end and the OP can connect to it from the other end then it will work. If the OP uses rsync with SSH as transport by connecting from the remote machine to their local SSH server then it may work (but then they could probably use scp this way in the first place). If the OP uses rsync with SSH as transport by connecting from their local machine to the remote SSH server then it will probably fail in the same way as in the question, because the transport SSH connection will be no different.