You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
same public ssh key for multiple repos not possible #39
Hi, first of all: great work with this service! Thank you for putting all the effort into this!
I'm currently using borgserver to backup from one remote machine. I added a borg-ui service in observe mode to conveniently watch over my backups and extract single files from time to time. Great!
Now I wanted to add another repo to backup from a second machine to borgserver. This worked flawlessly but in borg-ui there is a limitation that only one ssh key can be used for a single remote borg server.
Then I had the idea to use the same SSH key for the second repo on borgserver. This messed things up somewhat because the authorized_keys file borgserver generates then include the same SSH key twice with different path restrictions.
The last entry in authorized_keys wins, making the first repo unaccessible.
You can create multiple archives to the same report from different base paths, although I believe they generally recommend against this due to cache inefficiencies or something.
The ssh serve configuration has the --restrict-to-path and if you look at the run.sh script in this repo, the path is set to match the client id.
Perhaps you can try to create subfolders in your "client" folder and try creating repos there. I haven't tried it yet myself though.
Activity
mdeanda commentedon Nov 14, 2026
You can create multiple archives to the same report from different base paths, although I believe they generally recommend against this due to cache inefficiencies or something.
The ssh serve configuration has the
--restrict-to-pathand if you look at therun.shscript in this repo, the path is set to match the client id.Perhaps you can try to create subfolders in your "client" folder and try creating repos there. I haven't tried it yet myself though.