rsync/ssh configuration

# rsync project site
http://rsync.samba.org/documentation.html

# ssh config for rsync
http://troy.jdmz.net/rsync/index.html

cd /home/ops
mkdir rskeys
ssh-keygen -t rsa -b 2048 -f /home/thisuser/rskeys/thishost-rsync-key

scp /home/ops/rskeys/thishost-rsync-key.pub thisuser@remotehost:.

ssh thisuser@remotehost

$ if [ ! -d .ssh ]; then mkdir .ssh ; chmod 700 .ssh ; fi 
$ mv thishost-rsync-key.pub .ssh/ 
$ cd .ssh/ 
$ if [ ! -f authorized_keys ]; then touch authorized_keys ; chmod 600 authorized_keys ; fi 
$ cat thishost-rsync-key.pub >> authorized_keys

add  (prepend) to authorized_keys entry:
from="10.1.1.1",command="/home/remoteuser/cron/validate-rsync" ssh-dss AAAAB3...
[note: for me, worked only if I removed this]