I am trying to set up rsync to upload some files to my file server which is hosted on AWS ec2.
I have installed OpenSSH on my Windows Server 2019 and can successfully establish a connection to it.
However, I can't get the file transfer to work. This is the command I am using:
rsync -r -t -v --progress "/cygdrive/c/Users/*******/OneDrive - ********/Documents/Accounts MEx Files/" "filetransfer@ec2-**-**-**-**.eu-west-2.compute.amazonaws.com:/MoneyExLocal/"
I am using the rsync port that is part of grsync. The above command returns an error:
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632) [sender=3.0.4]
Which seems to be a generic error. When I run a test, the files are seen and the server seems to be authenticating as I get asked for the password, if I enter it wrong I get an unauthorised message but if I enter it correctly I get the above error.
The destination folder is C:\MoneyExLocal and the user filetransfer has full control of it. Do I need to share this folder? (I have tried that and it didn't make any difference)