$ ssh foo@localhost
...
foo@localhost's password:

Look at ~/.ssh

ls -l ~/.ssh
    authorized_keys
    known_hosts