Wait, if you disable password authenticated SSH, how do you log into the server?
The point of ssh is to use the keys for authentication. Having the ssh server permit password login is a back-compatible legacy from the telnet days and has been functionally obsolete for decades.