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
Make sure you've copied the whole public key to authorized_keys; the ssh rsa prefix is necessary for the key to work.
authorized_keys
ssh rsa