Problems with an old rsync

When installing my backup script on a redhat 9 i got this fatal error:

remote ip : Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)

It seems that I was working with old version of rsync (rsync version 2.5.7 protocol version 26). That old version uses default rsh, the recent versions use ssh. And ssh is what i need.
There is an option, called rsh, that allows you to set the remote shell to ssh.

# rsync --rsh=ssh ....

Leave a Reply