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
In my case I needed to put my authorized_keys file in .openssh.
authorized_keys
.openssh
This location is specified in /etc/ssh/sshd_config under the option AuthorizedKeysFile %h/.ssh/authorized_keys.
/etc/ssh/sshd_config
AuthorizedKeysFile %h/.ssh/authorized_keys