Nold360 / docker-borgserver

Dockerimage that runs a Borg backup server, accessible by ssh using publickey authentication
40 stars 24 forks source link

Have a way to specify sshd_config options #18

Closed alkim0 closed 1 year ago

alkim0 commented 1 year ago

Thanks for your work. I use it all the time.

It would be nice to have a way to specify sshd_config options to follow the recommendation in the borg documentation. If it undesirable to add general sshd_config options, just having a way to specify:

ClientAliveInterval 10
ClientAliveCountMax 30

would be good.

Thanks.

Nold360 commented 1 year ago

Thanks for your issue.

I would be willing to add these parameters to the default sshd_config, but you can still mount your own config into the container like this:

volumes:
  - path/to/sshd_config:/etc/ssh/sshd_config:ro
alkim0 commented 1 year ago

Doh! Good point.