SSH "connection closed" instantly
Alright, I have a feeling this is my own doing as a few months ago I was experimenting with public/private key authentication. Now I can't SSH into one of my work computers. That is, no machine can SSH into it and it can't SSH into itself.
When I run the command
ssh [myusername]@localhost
from the machine in question, I get:
Connection closed by ::1
Now, when I run
ssh -vv [myusername]@localhost
I get:
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [::1] port 22.
debug1: Connection established.
debug1: identity file /Users/pro01/.ssh/identity type -1
debug1: identity file /Users/pro01/.ssh/id_rsa type -1
debug1: identity file /Users/pro01/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2
debug1: match: OpenSSH_5.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
Connection closed by ::1
I've tried searching around but haven't had any luck. Anyone have any ideas as to how I can fix this and get my SSH working again?
Mac OS X (10.6.7)