I'm setting up a new Ubuntu 24.02 Server VM, and to my surprise, after editing the /etc/ssh/sshd_config and after checking the config file syntax with an sshd -t and restarting the service via sudo systemctl restart sshd it just kept on going with the same config as before.
I've made some pretty noticeable changes to the configs, like changing port and disabling password auth, and they only took place once I reboot the whole machine.
Is there a particular reason why sshd is behaving like this? Thanks in advance!