Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I get an error with cygwin rsync trying to transfer files between 64bit windows and 64bit linux. Both machines have rsync 3.0.7 installed. I'm running rsync with ssh (no daemon involved). I see that the connection to the remote box is established, but rsync dies after authentication and before file transfer.

What could cause this problem?

C:\>rsync user@host:~/file newfile
Password:
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=
3.0.7]
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at /home/lapo/packagi
ng/rsync-3.0.6-1/src/rsync-3.0.6/io.c(600) [receiver=3.0.6]
share|improve this question

2 Answers 2

up vote 0 down vote accepted

Turns out the problem was the windows git installation (mysysgit). Git on windows came with it's own ssh.exe and it's path was before cygwin path so rsync defaulted to git's ssh. The solution was simply swaping git bin and cygwin's bin dir in env PATH.

share|improve this answer

The error 12 with rsync means that the connection to remote party is gone. The reason depends on the environment.

If you are running rsync as a daemon, see its log file for clues. Is there enough free space on the remote system's disk? Maybe running rsync with -v parameter says something useful?

share|improve this answer
    
rsync not running as daemon. there is enough space and nothing useful from -vvv. –  kefeizhou Feb 3 '11 at 15:49
    
@kefeizhou: Is the remote system running rsync as a daemon? –  Dennis Williamson Feb 3 '11 at 15:59
    
@Dennis: there's no daemon on the remote system, i'm running rsync with ssh. –  kefeizhou Feb 3 '11 at 16:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.