rsync

Configuring chroot for sftp and rsync via rssh

I'm setting up gulp-rsync via rssh in ubuntu I want the user to have the ability to sftp and rsync without access to ssh and ... both with chroot After that, I save the file, restart apache and the user can not connect via SFTP writes Conecction closed

rsync with sudo rights

There is a task-to synchronize the contents of the /home/* folder between two servers. The command looks like this: rsync -- ... nd changed all the files ' rights to be read by the group. But this needs to be constantly monitored and looks like a crutch.