This is the mail archive of the
mailing list for the Cygwin project.
Re: rsync 3.0.9 fails when over ssh: connection unexpectedly closed / error in rsync protocol data stream
- From: Ludovic Aelbrecht <ludovic dot aelbrecht at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 1 Jan 2012 21:27:26 +0100
- Subject: Re: rsync 3.0.9 fails when over ssh: connection unexpectedly closed / error in rsync protocol data stream
- References: <CAD3UQe5B8f-rQZYmX1LRwPXrP=3suedcEoczv8nuLdfTKX4MkQ@mail.gmail.com>
- Reply-to: ludovic dot aelbrecht at gmail dot com
Any help on this would be most appreciated, as I'm really stuck on
this. Even just confirmations that rsync over ssh is working for
someone (and on what versions of rsync/ssh) would be helpful.
On Wed, Dec 28, 2011 at 16:27, Ludovic Aelbrecht
> Hello all,
> I'm trying to run an rsync backup over ssh, but I'm getting an error
> message when doing this.
> First of, these are the versions of rsync & ssh I'm running:
> rsync ?version 3.0.9 ?protocol version 30
> OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011
> Attached you can find the output of running the command "cygcheck -s -v -r".
> When I run rsync without ssh, it's working fine, e.g.:
> rsync --delete -ahzv --exclude=".svn" ? ? /cygdrive/c/projects
> sending incremental file list
> sent 9.00M bytes ?received 68.31K bytes ?15.56K bytes/sec
> total size is 12.62G ?speedup is 1391.54
> When I run the same rsync command over ssh, it fails like this (note
> that it fails right away, it doesn't need the usual ~5-10 minutes to
> check the 'c/projects/' dir):
> $ rsync --delete -ahzv --exclude=".svn" -e ssh
> /cygdrive/c/projects ludovic@REMOTEHOST::backup/E6410/
> rsync: connection unexpectedly closed (0 bytes received so far) [sender]
> rsync error: error in rsync protocol data stream (code 12) at
> The same problem occurs when using less rsync options, e.g. "rsync -e
> ssh /cygdrive/c/projects ludovic@REMOTEHOST::backup/E6410/". I've
> attached an strace output of running this command, in case that helps.
> However, ssh'ing to the remote host works fine. SSH worked fine when
> it wasn't passwordless; I set it up a few days ago to be passwordless
> and it's still working fine:
> $ ssh ludovic@REMOTEHOST
> Last login: Wed Dec 28 15:51:45 2011 from [foobar] on pts/0
> Linux REMOTEHOST 2.6.37 #1 SMP Mon Aug 15 16:19:41 PDT 2011 x86_64 GNU/Linux
> Last login: Wed Dec 28 15:51:50 2011 from [foobar]
> rsync over ssh always gives me the same error, whether passwordless or not.
> I have no idea if I'm doing something wrong, or if this is a bug.
> Given the amount of people probably running it like this, I'd say it's
> a problem on my side, but the type of error makes me wonder.
> Thanks in advance for any help,
> P.S.: Please keep me in Cc as I'm not subscribed.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple