"server refused public-key signature despite accepting key" error SFTP

A couple of things to review.
Is the public key generated in ~/.ssh/ and assign the correct permissions as chmod 400 ~/.ssh/authorized_keys?
Have you at any point edited sshd_conf? - if you have restore the original.

If I were you I might delete /.ssh/authorized_keys and try following Will Dizon’s excellent YouTube tutorial