enable_rsync_on_synology
This is an old revision of the document!
Want to do rsync to/from a Synology (perhaps to do backups with rsnapshot) and you want to use SSH keys?
Synology GUI
Make an rsync user with read and possibly write permissions to the desired share(s). Can use an existing user at your discretion.
Synology SSH
SSH to the box with a sudo-capable account.
Enable SSH keys in general:
sudo vim /etc/ssh/sshd_config
Uncomment each of:
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
ChallengeResponseAuthentication no
If enabling rsync on a dedicated account, become that account: sudo -u rsync /bin/bash
Put the key into .ssh/authorized_keys
.
Constrain permissions appropriately. From homedir:
chmod 700 . .ssh chmod 600 .ssh/authorized_keys
Credit here for the above.
enable_rsync_on_synology.1639889257.txt.gz · Last modified: 2021/12/18 20:47 by tkbletsc