Инструменты пользователя

Инструменты сайта


 ↔

Боковая панель

linux:synology
Эта версия (2018/08/01 16:26) была проверена пользователем Случайный зритель.Доступна предыдущая проверенная версия (2018/01/21 00:13).Diff

Synology settings

SSH via key

pi@raspberry:~/.ssh $ ssh-keygen -t rsa 
Generating public/private rsa key pair.
Enter file in which to save the key (/home/pi/.ssh/id_rsa): ds
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
pi@raspberry:~/.ssh $ ssh-copy-id -i ds admin@ip -pPORT
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
admin@ip's password: 

Number of key(s) added: 1

Now try logging into the machine...
admin@DiskStation:~$ chown admin:users /var/services/homes/admin/.ssh
admin@DiskStation:~$ chmod 700 /var/services/homes/admin/.ssh
admin@DiskStation:~$ chown admin:users /var/services/homes/admin/.ssh/authorized_keys
admin@DiskStation:~$ chmod 644 /var/services/homes/admin/.ssh/authorized_keys

admin@DiskStation:/var/services/homes$ chmod 755 admin/
admin@DiskStation:~$ ll
total 52
drwxrwxrwx+ 6 admin users 4096 Nov 20 18:14 .
drwxrwxrwx+ 7 root  root  4096 Nov 11 22:44 ..
drwxrwxrwx+ 4 admin users 4096 Oct 21 18:56 Drive
-rwxrwxrwx+ 1 admin users 6148 Nov 11 22:42 .DS_Store
drwxrwxrwx+ 2 root  users 4096 Nov 11 22:42 @eaDir
drwxrwxrwx+ 3 admin users 4096 Oct 24 00:30 freespace
drwx------  2 admin users 4096 Nov 20 18:14 .ssh
PasswordAuthentication # change

#RSAAuthentication yes # comment
PubkeyAuthentication yes # uncomment
AuthorizedKeysFile /var/services/homes/admin/.ssh/authorized_keys # uncomment and change

Delete @eaDir index files

find . -name "@eaDir" -type d
find . -name "@eaDir" -type d -print0 | xargs -0 rm -rf

Stop making index

cd /usr/syno/etc.defaults/rc.d/
chmod 000 S66fileindexd.sh S66synoindexd.sh S77synomkthumbd.sh S88synomkflvd.sh S99iTunes.sh

Other ssh configs

Обсуждение

Ваш комментарий. Вики-синтаксис разрешён:
B᠎ N N B​ U
 
/home/d/dgaloc/wiki.dmgl.info/public_html/data/pages/linux/synology.txt · Последние изменения: 2018/08/01 16:26 — Случайный зритель