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
Windows Server 2019* SSH* rSync
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-**-**-**-**.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)

Thanks


Paul.

ASKER CERTIFIED SOLUTION
David Favor
Fractional CTO
Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 9 Comments.
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>

Mike

Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 9 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004