There is one possibility that your sshd doesn't read configuration from /etc/ssh/sshd_config.
You may need to check if your sshd is using theloading configuration offrom /etc/ssh/sshd_config. I have come across such a situation whenafter I upgraded opensshopenssh from source with default compile options. After I installed the new sshdsshd I find that the password authentication is enabled and cannot be turned off no matter how I edit thethe /etc/ssh/sshd_config.
When I runran sudo sshd -T to check the configuration, I findfound that it loads configuration from /usr/local/etc/ssh/sshd_config.
This may not be your case, but I just share my experienceit here in case some onesomeone eles may encountercome across the same issueproblem.