Cygwin rsync protocol error

I am trying rsync files between 64 bit windows 7 and 64 bit linux. I have rsync 3.0.7 installed on both machines (cygwin version on windows).

This is the command that I run on windows. I see that he has established a connection with the remote machine, but he just dies after authentication and before transferring the files. What can cause this problem?

rsync -vvvv localfile REMOTE-HOST:~/ FILE_STRUCT_LEN=16, EXTRA_LEN=4 cmd=<NULL> machine=REMOTE-HOST user=guest path=~/ cmd[0]=ssh cmd[1]=-l cmd[2]=guest cmd[3]=REMOTE-HOST cmd[4]=rsync cmd[5]=--server cmd[6]=-vvvvv.Lsf cmd[7]=. cmd[8]=~/ opening connection using: ssh -l guest REMOTE-HOST rsync --server -vvvve.Lsf. "~/" note: iconv_open("UTF-8", "UTF-8") succeeded. Password: FILE_STRUCT_LEN=24, EXTRA_LEN=4 rsync: connection unexpectedly closed (0 bytes received so far) [Receiver] [Receiver] _exit_cleanup(code=12, file=io.c, line=601): entered rsync error: error in rsync protocol data stream (code 12) at io.c(601) [Receive r=3.0.7] [Receiver] _exit_cleanup(code=12, file=io.c, line=601): about to call exit(12) rsync: connection unexpectedly closed (0 bytes received so far) [sender] [sender] _exit_cleanup(code=12, file=/home/lapo/packaging/rsync-3.0.7-1/src/rsyn c-3.0.7/io.c, line=601): entered rsync error: error in rsync protocol data stream (code 12) at /home/lapo/packagi ng/rsync-3.0.7-1/src/rsync-3.0.7/io.c(601) [sender=3.0.7] [sender] _exit_cleanup(code=12, file=/home/lapo/packaging/rsync-3.0.7-1/src/rsyn c-3.0.7/io.c, line=601): about to call exit(12) 
+4
source share
2 answers

The problem was a conflicting git installation. git included its own ssh, and the path was to the cygwin path, so rsync used git ssh. The fix was to change the order of the git / cygwin bin path, so rsync used the correct version of ssh.

+3
source

I found a way around this error by adding an absolute path to ssh in my call:

rsync -avzphi --chmod=ugo=rwX --checksum --delete-after -e "C:\cwRsync\ssh.exe -p 9999 -ic:\cwRsync\ssh\test_id_rsa" "/cygdrive/c/repository/blah.com/" test@xx.xx.xxx.xxx :/home/test/public_html

0
source

All Articles