While using rsync to sync files between two web servers uses standard ssh port 22. But many of hostmaster change the default ssh port for the security purpose, in that case you also need to specify port to link with remote server.
previously we have discuss all about Synchronization,Follow my previous guide on Using Rsync to Synchronizing files.
For example below command connect to remote server though ssh on port 4567 and synchronize all information from /file/ directory on remote to /local/files localhost directory.
rsync -ravz -e "ssh -p 2222" email@example.com:/files/ /local/files/