Make sure your permissions are correct. It’s the most common cause of failing to automatically logging in.
From the wiki:
chmod go-w ~
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
If those aren’t set, ssh assumes that because someone could tamper with them it’s not safe.
The other thing to do is make sure that you don’t have an extra carriage return in your text.