If shortly, when I submit my files to VPS from Ubuntu PC by Rsync, everything going well, however if I do the same thing from Windows, I get the error
rsync: connection unexpectedly closed (0 bytes received so far)
[Receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(235) [Receiver=3.1.3]
Although unlike Linux, the Rsync is not installed as default for the Windows, I have installed it Rsync on my Windows PC.
Environment data
- Local PC#1: Windows 10
- Local PC#2: Ubuntu 20.04.5
- VPS: Ubuntu 20.04
Preparations
I have initialized the VPS with clear Ubuntu. To eliminate some the variables from equations, I have done some things which should not be done at real (not experimental as in my case) VPS because of security.
- I'll submit the data using the root account
- I will not use the SLL
Also, I have created the /var/www/example.com directory at VPS to avoid the error about unable to sync the data because the destination directory has not been created.
Target
Submit the content of 06-ProductionBuild directory to VPS.
Experiment flow
On Windows terminal, input
rsync -azve ssh --progress 06-ProductionBuild [email protected]:/var/www/example.com
The password has been requested. After inputting the password got:
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(235) [Receiver=3.1.3]
If I just inputted the wrong password, the error was Permission denied, please try again
.
Now same command from Ubuntu PC:
Everything was fine.
Please give me some hints.
Tried from WSL - it was fine. Looks like something wrong with Rsync from Windows.