PasswordAuthentication no
, the title of your question and the phrase "prevent ssh password login" made me believe you want to disable exactly this: logging in with password, while still allowing public key authentication or so. DenyUsers
disallows all methods, right? This other answer is a solution to what I thought your problem was.