Synology: ssh
blog.aaronlenoir.com/2018/05/06/ssh-into-synology-nas-with-ssh-key
Enable Public Key Authentication
Log in to your NAS using ssh:
ssh -p <port> your-nas-user@your-nas-hostname
Open the SSH server configuration file for editing:
sudo vim /etc/ssh/sshd_config
Find the following lines and uncomment them (remove the #):
It's possible to restart the service using the following command:
sudo synoservicectl --reload sshd
Key erstellen und den Public in "~/.ssh/authorized_keys" anfügen.
serverpilot.io/docs/how-to-use-ssh-public-key-authentication
Falls immer noch nicht geht könnten die Rechte auf der NAS falsch sein und ssh verweigert sich.
cd /var/services/homes/
dir
schauen, wie die Rechte des Users (Admin z.B.) vergeben sind. So ist falsch:
drwxrwxrwx+ 4 my-nas-user users 4096 Apr 28 00:04 my-nas-user
Dann korrigieren mit:
chmod 755 /var/services/homes/my-nas-user
No comments to display
No comments to display