Paco

Personal Content Organiser

Home / synology

Navigation

Menu

Search

[Synology] Enable ssh public key authentication

root


1. login as user

2. sudo to root

3. create .ssh/authorized_keys

4. set 700 for .ssh directory and 600 for authorized_keys file

5. edit /etc/ssh/sshd_config and uncomment the following
PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys

6. reload sshd deamon
synoservicectl --reload sshd


Note

On DSM 7
synosystemctl restart sshd.service



users



1. enable user home service
Conrtol Panel > User > Advanced > User Home



2. login as user per SSH

3. create .ssh/authorized_keys

4. set 700 for .ssh directory and 600 for authorized_keys file

5. set 700 for user home directory
chmod 700 /volume1/homes/user

Note

755 might work too, however I prefer to have 700 on my home directory

Attachments