User Tools

Site Tools


synology

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
synology [2023/12/08 13:21] ssm2017synology [2024/01/29 14:31] (current) ssm2017
Line 6: Line 6:
 ==== ssh key file ==== ==== ssh key file ====
 source : https://blog.aaronlenoir.com/2018/05/06/ssh-into-synology-nas-with-ssh-key/ 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 in /etc/ssh/sshd_conf
Line 12: Line 16:
 </sxh> </sxh>
 <sxh bash> <sxh bash>
-sudo chmod 755 /myvolume1/homes/myuser+sudo -i 
 +chmod 755 /myvolume1/homes/myuser
 synosystemctl restart sshd.service synosystemctl restart sshd.service
 </sxh> </sxh>
 to debug : to debug :
 <sxh bash> <sxh bash>
-sudo /bin/sshd -d -p 1234+/bin/sshd -d -p 1234
 </sxh> </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
synology.1702038090.txt.gz · Last modified: by ssm2017