DSM 6.1.6-15266
rsyncサービス有効
rsyncアカウント有効
SSHサービス有効(ポートデフォ)

【状況】
共有フォルダ同期よりちょっと込み入ったことやりたいのでタスクスケジューラーにてadminで

rsync -avn /元フォルダ/ resync垢name@192.168.xxx.xxx:/先フォルダ/

やると
Could not create directory '/var/services/homes/admin/.ssh'. ←@

rootで同上シェルスクリプトでやると上記エラー消えるが下記が残る
Host key verification failed.
rsync error: unexplained error (code 255) at io.c(687) [sender=3.0.9] ←A

コピー先に公開鍵渡せてない様子だが上記@が出るってことはタスクスケジューラー
はssh-keygenとssh-copy-idに相当することはやってくれているんだよな
スクリプトにssh-keygenとssh-copy-id追加すると二重に鍵作ることになりそう
telnet開かずにさくっと簡単にできそうだったのに知識が足りん

解決策候補メモ↓
https://www.digitalocean.com/community/tutorials/how-to-mirror-local-and-remote-directories-on-a-vps-with-lsyncd#how-to-configure-remote-syncing-with-lsyncd
https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2