Disable ssh password authentication by user

Solution 1:

Use a Match that matches all the users but the ones you want to be able to use password authentication and add the 'PasswordAuthentication no' in that Match block. Something like:

Match User someuser
PasswordAuthentication no

and so on.