Another cause I found. I had:
Host * PreferredAuthentications publickey
in ~/.ssh/config
(copied from another user, thinking it was "preference"). Actually PreferredAuthentications
specifies "allowed" methods and order.
Either delete the PreferredAuthentications
line or add password
Host * PreferredAuthentications publickey,password
Note: No space after the comma!