Well, that's right.that's normal though? when you change the config file you'd need to restart/reload the service.
But when I reboot the container, shouldn't the SSH settings I configured in the configuration be used?
This is not the case until I restart the SSH server after the container restart.
How to reproduce:
- Start latest LXC container with Debian 11
- Connect to container with SSH
- Configure 1337 as SSH port in /etc/ssh/sshd_config
- Restart SSH server.
- Connect to container via port 1337. <- works!
- Restart the container.
- SSH uses port 22 again.
Last edited: