Skip to content

same public ssh key for multiple repos not possible #39

Open

Description

@sonntam

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.

Any ideas on how to handle this (if at all)?

Activity

  1. mdeanda commented on Nov 14, 2026

    @mdeanda

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions