1
0
Fork 0

Add server configuration to README.

This commit is contained in:
Casper V. Kristensen 2019-03-22 03:27:17 +01:00
parent cd6350ecd9
commit aa1e30c069
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -52,8 +52,16 @@ head -c 1024 /dev/urandom | base64 > /data/data/com.termux/files/home/borgbackup
Change `<server>` and `<port>` in `borg.sh` to correct values.
Generate keypair for root with empty password
```bash
tsudo ssh-keygen -t ed25519
tsudo cat
```
Dont forget to set ssh configs accordingly!
Add ~/.ssh/id_ed25519.pub to authorized_users on server
```bash
command="mkdir -p ~/repos/phone; cd ~/repos/phone; borg serve --restrict-to-path ~/repos/phone",restrict ssh-ed25519 AAA..yX root@phone
```
## Known Issues