I am trying to use rsync to synchronize a remote folder through SSH.
I have a cygwin version of rsync installed on my Windows 2000 PC where:
rsync --version displays: rsync version 2.4.6 protocol version 24
On my linux box, the version of rsync installed where:
rsync --version displays: rsync version 2.5.7 protocol version 26
I have confirmed that I can login through ssh using the following command:
I then try an rsync command such as:
This is where I get the following errors:
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)
read error: Connection reset by peer
I am wondering what might be the problem? Nothing appears in the logs except for an ssh session open followed by an ssh session close for myuser which seems to make sense.
Perhaps the different protocol versions are giving me problems?!?
Lastly, do I have to have rsync running on the server in --daemon mode for remote rsync to work? In the above example, I am not specifying a share name, but instead a remote directory so I was under the impression that running a remote daemon may not be necessary...
I have also tried starting rsync --daemon on the server with the following rsyncd.conf file:
motd file = /etc/rsyncd/rsyncd.motd
log file = /var/log/rsyncd.log
list = yes
uid = nobody
gid = nobody
auth users = myuser
hosts allow = *
comment = My Comment for My Friends
path = /someDir
read only = no
list = false
secrets file = /etc/rsyncd/rsyncd.secrets
and then use an rsync command that references the share instead:
and I get the same errors...