tgbyte / docker-borg-backup

A dockerized Borg Backup server
https://hub.docker.com/r/tgbyte/borg-backup
Apache License 2.0
26 stars 18 forks source link

Added possibility to define multiple authorized keys #2

Closed Ph3n1x closed 6 years ago

Ph3n1x commented 6 years ago

I am doing borg backups from several users from same&different machines, so I need to be able to add multiple authorized keys into the /home/borg/.ssh/authorized_keys file.

With the "-e" flag, echo can interpret e.g. \n and would add a newline. Defining BORG_AUTHORIZED_KEYS='ssh-rsa AA... PC-1\nssh-rsa BB... PC-2\nssh-rsa CC... PC-3' will result in

ssh-rsa AA... PC-1
ssh-rsa BB... PC-2
ssh-rsa CC... PC-3
jordanorc commented 6 years ago

I'm having same problem...

ginkel commented 6 years ago

@Ph3n1x Thanks for your contribution (and sorry for the delayed reply)!