---
tags:
  - "#ssh"
parents: "[[Linux Wflow]]"
date/time: 2024-11-03T23:38:00
---
# Git repo

https://kb.synology.com/en-global/DSM/help/Git/git?version=7

Setting up Git Server : https://gist.github.com/walkerjeffd/374750c366605cd5123d

https://www.minmaxgeek.com/blog/fix-synology-ssl#step-2

on client side 

```
git clone ssh://yousef@chillibilly.pw:~/Projects
```


# Enable ssh through publickey

- generate private keys 
```
ssh-keygen -t rsa -b 4096 -C "dl92@protonmail.com"
```
- copy keys to server(synology)
```
ssh-copy-id -n yousef@192.168.0.201

```
- chg /etc/ssh/sshd_config and enable publickeyencryption and prohibit password

# Mounting  drives through ssh

https://unix.stackexchange.com/questions/272264/use-sshfs-to-mount-synology-nas

- install sshfs
- mount backup location
```
sshfs yousef@chillibilly.pw:/Rear ~/Rear

```

- mount borg archive
```
borg mount ~/Rear/<path_to_archive> ~/<path_to_backup_mount>
```