rsync gives me error 12

Adam Dinwoodie adam@dinwoodie.org
Fri Mar 25 13:37:41 GMT 2022


On Fri, Mar 25, 2022 at 08:25:16AM -0500, Neil Aggarwal wrote:
> > I suspect the `-e ssh` part is the problem here.  That's supposed to
> > specify the remote shell, not the method for connecting.  What are you
> > attempting to achieve with that?
> 
> I am trying to do the sync over an SSH connection.
> 
> When I remove it:
> rsync --debug=ALL root@marketing.propfinancing.com:/var/www/svnDumps
> /cygdrive/c/Tmp
> 
> I still get the error:
> opening connection using: ssh -l root marketing.propfinancing.com
> rsync --server --sender -e.LsfxCIvu . /var/www/svnDumps  (10 args)
> rsync: connection unexpectedly closed (0 bytes received so far) [sender]
> rsync error: error in rsync protocol data stream (code 12) at io.c(226)
> [sender=3.1.3]
> rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
> rsync error: error in rsync protocol data stream (code 12) at io.c(228)
> [Receiver=3.2.4dev]
> [Receiver] _exit_cleanup(code=12, file=io.c, line=228): about to call
> exit(12)

Works just fine for me.  (Indeed, it works just fine even if I add `-e
ssh`, which surprised me -- clearly I have the wrong impression of what
that `-e` argument is for!)

Looking slightly closer at the logs, this reads to me like the remote
server is closing the connection, so I expect you'll need help from
whoever provides/supports that remote server to work out why it's doing
that.


More information about the Cygwin mailing list