In order to use "
rsync" to synchronize data between a development server and a production server, I have to set
PermitRootLogin on on the production server, then I can run "
rsync -avhe ssh --delete --progress local/folder firstname.lastname@example.org:/home/www/folder/", to keep all files with ownership/permissions unchanged.
However, because of the security policy, I have to set "
PermitRootLogin no" on the production server.
What would be a good way of dealing with this problem?