X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_HZ X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Reply-To: ludovic DOT aelbrecht AT gmail DOT com In-Reply-To: References: From: Ludovic Aelbrecht Date: Sun, 1 Jan 2012 21:27:26 +0100 Message-ID: Subject: Re: rsync 3.0.9 fails when over ssh: connection unexpectedly closed / error in rsync protocol data stream To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q01KSRgg021934 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. Thanks, Ludovic On Wed, Dec 28, 2011 at 16:27, Ludovic Aelbrecht wrote: > > 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 > ludovic AT REMOTEHOST::backup/E6410/ > Password: > 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 AT REMOTEHOST::backup/E6410/ > rsync: connection unexpectedly closed (0 bytes received so far) [sender] > rsync error: error in rsync protocol data stream (code 12) at > /home/lapo/package/rsync-3.0.9-1/src/rsync-3.0.9/io.c(605) > [sender=3.0.9] > ------------------ > > The same problem occurs when using less rsync options, e.g. "rsync -e > ssh /cygdrive/c/projects ludovic AT 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 AT 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] > ludovic AT REMOTEHOST:~$ > ------------------ > > 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, > Ludovic > > P.S.: Please keep me in Cc as I'm not subscribed. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple