The error means that the remote host rejected the file upload request via SCP. This might happen if the folder permissions are not configured properly or if the SSH server is not configured to accept uploads.
We would recommend checking the syslog on the Linux machine for more details on the error and updating your SSH server if nothing helps.