User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
synology [2023/11/01 18:55] – created ssm2017synology [2024/01/29 14:31] (current) ssm2017
Line 1: Line 1:
 ===== Synology ====== ===== Synology ======
 ==== security ==== ==== security ====
- network --> connectivity --> disable server headers+  * network --> connectivity --> disable server headers 
 +  * error page --> /usr/syno/share/nginx/error.html 
 + 
 +==== ssh key file ==== 
 +source : https://blog.aaronlenoir.com/2018/05/06/ssh-into-synology-nas-with-ssh-key/ 
 + 
 +<sxh bash> 
 +ssh-keygen -t rsa -b 4096 -C "user@machine" 
 +</sxh> 
 + 
 +in /etc/ssh/sshd_conf 
 +<sxh bash> 
 +PubkeyAuthentication yes 
 +</sxh> 
 +<sxh bash> 
 +sudo -i 
 +chmod 755 /myvolume1/homes/myuser 
 +synosystemctl restart sshd.service 
 +</sxh> 
 +to debug : 
 +<sxh bash> 
 +/bin/sshd -d -p 1234 
 +</sxh> 
 + 
 +==== git server ==== 
 +  * install git server package 
 +  * using the menu, open the git server app and give access to the user 
 +  * connect with ssh to the nas and create a git repo (git init --bare) 
 +  * go inside the git repo and run : git update-server-info

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information