{"id":861,"date":"2011-10-21T15:44:23","date_gmt":"2011-10-21T14:44:23","guid":{"rendered":"http:\/\/kudzia.eu\/b\/?p=861"},"modified":"2025-03-02T10:57:14","modified_gmt":"2025-03-02T09:57:14","slug":"rsync-connection-unexpectedly-closed-0-bytes-received-so-far-sender","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2011\/10\/rsync-connection-unexpectedly-closed-0-bytes-received-so-far-sender\/","title":{"rendered":"rsync: connection unexpectedly closed (0 bytes received so far) [sender]"},"content":{"rendered":"<p>i use rsync to transfer my backups around. to better utilize available bandwidth i run multiple rsyncs in parallel&#8230; but from time to time i&#8217;ve noticed failures that on the client side.<br \/>\n<!--more--><br \/>\ni was getting:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nrsync: connection unexpectedly closed (0 bytes received so far) &#x5B;sender]\r\nrsync error: unexplained error (code 255) at io.c(601) &#x5B;sender=3.0.7]\r\nssh_exchange_identification: Connection closed by remote host\r\nrsync: connection unexpectedly closed (0 bytes received so far) &#x5B;sender]\r\nrsync error: error in rsync protocol data stream (code 12) at io.c(601) &#x5B;sender=3.0.7]\r\nrsync: connection unexpectedly closed (0 bytes received so far) &#x5B;sender]ssh_exchange_identification: Connection closed by remote host\r\n<\/pre>\n<p>after some investigation it turned out that rsyncs run one after another don&#8217;t fail&#8230; i started digging around and found that setting MaxStartups to 100 in \/etc\/ssh\/sshd_config on the receiving server solves the problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>i use rsync to transfer my backups around. to better utilize available bandwidth i run multiple rsyncs in parallel&#8230; but from time to time i&#8217;ve noticed failures that on the client side.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[56],"class_list":["post-861","post","type-post","status-publish","format-standard","hentry","category-unimportant","tag-rsync"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=861"}],"version-history":[{"count":2,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/861\/revisions"}],"predecessor-version":[{"id":3715,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/861\/revisions\/3715"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}