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