Nold360 / docker-borgserver

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

Have a way to specify sshd_config options #18

Closed alkim0 closed 2 years ago

alkim0 commented 2 years 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 2 years 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 2 years ago

Doh! Good point.