SSH with keys but keeps asking for passwords
Mar 2 14:42:47 polpot sshd[1794]: Authentication refused: bad ownership or modes for file /home/muhammar/.ssh/authorized_keys
One day or the other it will happen again, and again you will forget how to fix it. Fact.
So, for posterity, here’s how to get rid of the infamous error that prevents you to log without submitting your password:
chmod 0600 ~/.ssh/authorized_keys
done!
Read other posts