troubleshooting Question

How do I connect to OpenSSH on Windows Server 2019 (AWS EC2) from Windows 10?

Avatar of Paul Donson
Paul DonsonFlag for United Kingdom of Great Britain and Northern Ireland asked on
* rSync* SSHWindows Server 2019
9 Comments1 Solution24 ViewsLast Modified:
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-**-**-**-**"

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)



Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros