Hello! I'm new here but I'd like to know if there is any fix for this, I have this issue, I modified some templates and noticed that the sshd_config file resets every time you create a new container, thanks in regards.
I have a custom template with everything already set in sshd_config, I coudn't understand your answerThat's "magic" ... can you use /etc/ssh/sshd_config.d/?
I mean when i change it in the TEMPLATE not in the already deployed containerI just tested it and it's not the case for me, maybe your container does that? What changed in the file?
1 OP has lxc running and changes option inCould you descibe more what's your problem?
/etc/ssh/sshd_config
Thank you for clearing that up, yet I still stand by my #4 comment. It works for me:1 OP has lxc running and changes option in/etc/ssh/sshd_config
2 OP makes new template of lxc
3 OP deploys new lxc using said template
4 change from 1 is nor reflected in new lxc
I guess i'll have to double checkThank you for clearing that up, yet I still stand by my #4 comment. It works for me:
1) used a Debian Bullseye image, created a container
2) I changed the default #PermitRootLogin prohibit-password to PermitRootLogin yes
3) converted the container to a template
4) cloned the template (not creating a new container with a container template!) and started the newly created container
5) Looked at the sshd_config and my change is still present.