(rsync client linux server) connection fails

4 posts / 0 new
Last post
itefix
Offline
Last seen: 56 min 15 sec ago
Joined: 01.05.2008 - 21:33
(rsync client linux server) connection fails

I am trying to use the rsync client to connect to a linux server but get the following error. RSYNC_RSH has been set to ssh2. Running the ssh command works just fine (ie authentication is successful). Any help would be appreciated. TIA.
C:\Program Files\cwRsyncServer\bin> rsync -avvv . user@machine.example.com:/tmp

opening connection using ssh2 -l user machine.example.com rsync --serv
er -vvvlogDtpr . /tmp
user's password:
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(342)
_exit_cleanup(code=12, file=io.c, line=342): about to call exit(12)
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(584)
_exit_cleanup(code=12, file=io.c, line=584): about to call exit(12)

itefix
Offline
Last seen: 56 min 15 sec ago
Joined: 01.05.2008 - 21:33
Re: (rsync client linux server) connection fails

Which version of rsync do you have on linux-side ? As an example, version 2.6.5 has protocol 29, 2.6.3 has 28 and so on. There may be some protocol conflicts.

You can also consider to post this message to rsync users mailing list.

itefix
Offline
Last seen: 56 min 15 sec ago
Joined: 01.05.2008 - 21:33
Re: (rsync client linux server) connection fails

Sorry about not providing those details. It seems that cwRsync (on XP/SP2) is using v2.6.5 and protocol v29 while the linux side (Fedora Core 2) is using v2.6.2 and protocol v28. I would be surprised that the rsync folks would not have tested this. Will see if I can dig anything else up.

itefix
Offline
Last seen: 56 min 15 sec ago
Joined: 01.05.2008 - 21:33
Re: (rsync client linux server) connection fails

I tried the same command from my XP (rsync 2.6.5 proto 29) to my Fedora 3 (rsync 2.6.3 proto 28) and It worked as expected. I haven't specified RSYNC_RSH since ssh is the default.

Topic locked