I made a key, but it logs me back out as i try to setup passphraseless logins to localhost:
$ rsa-keygen -t rsa
$ cat id_rsa.pub > authorized_keys
$ ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
RSA key fingerprint is bb:a6:5e:46:c9:b5:e9:46:bd:43:c1:6e:cd:3b:e5:ea.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
Connection closed by ::1
The same thing happens when I try to login with using the hostname as well. What am I missing?

ssh -o PubkeyAuthentication=no localhost) – Michael Mrozek♦ Nov 15 '10 at 5:28tail -F /var/log/secure.login one terminal, while attempting tossh localhostin another terminal, so we can see what error messages if any are occurring? – N J Nov 15 '10 at 7:59ssh -vvv. (This is something you should always do when asking about ssh failing to connect. Anonymize user and host names if necessary.) If you have a~/.ssh/config, try without or post its contents. – Gilles Nov 15 '10 at 19:19