I added the public SSH key to the authorized_keys file. ssh localhost should log me in without asking for the password.
ssh localhost
I did that and tried t
Beware that SELinux can trigger this error as well, even if all permissions seem to be OK. Disabling it did the trick for me (insert usual disclaimers about disabling it).