rsync gives me error 12

Andrey Repin anrdaemon@yandex.ru
Mon Mar 28 13:27:12 GMT 2022


Greetings, Neil Aggarwal!

> Adam:

>> this reads to me like the remote
>> server is closing the connection

> When I run this command on my Windows machine:
> rsync --debug=ALL root@marketing.propfinancing.com:/var/www/svnDumps
> /cygdrive/c/Tmp

> I get this output on the screen:
> 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)

Please pause here for a moment. Are you using Cygwin ssh or MS Windows provided 
variant? Cygwin rsync is unable to use native Windows apps as tunnel wrappers.
Be it OpenSSH or PuTTY's plink. With exactly the message you see above.

> It is connecting to the Linux server and immediately disconnecting, here
> is what I see in /var/log/secure:
> Mar 25 12:11:00 marketing sshd[43597]: Postponed publickey for root from
> 99.137.191.183 port 64715 ssh2 [preauth]
> Mar 25 12:11:00 marketing sshd[43597]: Accepted publickey for root from
> 99.137.191.183 port 64715 ssh2: RSA SHA256:[removed]
> Mar 25 12:11:00 marketing sshd[43597]: pam_unix(sshd:session): session
> opened for user root by (uid=0)
> Mar 25 12:11:00 marketing sshd[43600]: Received disconnect from
> 99.137.191.183 port 64715:11: disconnected by user
> Mar 25 12:11:00 marketing sshd[43600]: Disconnected from user root
> 99.137.191.183 port 64715
> Mar 25 12:11:00 marketing sshd[43597]: pam_unix(sshd:session): session
> closed for user root

> I'm stumped at this point.

> Thank you,
>   Neil

> --
> Neil Aggarwal, (972) 834-1565, http://www.propfinancing.com
> We offer 30 year loans on single family houses!



-- 
With best regards,
Andrey Repin
Monday, March 28, 2022 16:24:44

Sorry for my terrible english...



More information about the Cygwin mailing list