From aa1e30c069bae0c9acee88b03c880b518c1a0960 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Fri, 22 Mar 2019 03:27:17 +0100 Subject: [PATCH] Add server configuration to README. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 08c3d09..6965055 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,16 @@ head -c 1024 /dev/urandom | base64 > /data/data/com.termux/files/home/borgbackup Change `` and `` 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