Help with synchronizing two directories on remote servers

Nick Demou (enLogic) ndemou at enlogic.gr
Tue Oct 11 07:07:01 GMT 2005


symbulos - ethical services (external mailing lists) wrote:
> I apologise for the incongruous posting.
> 
> We have two webservers, a and b, both of them with rsync 
> installed.
> 
> We would like to rsync one directory on one server with 
> another directory on another server.
> 
> What I do is to go to one of the server (server a) as root 
> using ssh, navigate to the directory, and write
> 
> rsync -avz username at serverb:directory/     ./
> 
> This is the error we get
> 
> ssh: connect to host 80.81.131.173 port 22: Connection 
> refused

this is the important part and it means that port 22 does not accept 
connections at all.
Make sure that
a) sshd is running at 80.81.131.173
b) any firewall in between does not block connections from you
c) sshd is licening at port 22

> rsync: connection unexpectedly closed (0 bytes received so 
> far) [receiver]
> rsync error: error in rsync protocol data stream (code 12) 
> at io.c(359)
> 
> Thanks in advance
> 
> Corrado
> 
> Corrado, Rina, John, Judith



More information about the rsync mailing list