I enabled Remote Login under System Preferences to allow myself to SSH to my Mac externally but when I do "ssh -l UserName myIPAddress" I get an error that says "Connection closed by myIPAddress". It doesn't even ask for my password.
I'm obviously missing something but I can't think what it could be.
This is the output that I get if I do "ssh -v -l UserName myIPAddress":
$ ssh -v -l UserName myIPAddress
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
debug1: Connecting to myIPAddress [xx.xx.xxx.xxx] port 22.
debug1: Connection established.
debug1: identity file /home/UserName/.ssh/identity type -1
debug1: identity file /home/UserName/.ssh/id_rsa type -1
debug1: identity file /home/UserName/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1
debug1: match: OpenSSH_3.8.1p1 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
Connection closed by xx.xx.xxx.xxx
Also, I get the same problem if I try and connect via the loopback address (127.0.0.1).
Any ideas?
I'm obviously missing something but I can't think what it could be.
This is the output that I get if I do "ssh -v -l UserName myIPAddress":
$ ssh -v -l UserName myIPAddress
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
debug1: Connecting to myIPAddress [xx.xx.xxx.xxx] port 22.
debug1: Connection established.
debug1: identity file /home/UserName/.ssh/identity type -1
debug1: identity file /home/UserName/.ssh/id_rsa type -1
debug1: identity file /home/UserName/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1
debug1: match: OpenSSH_3.8.1p1 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
Connection closed by xx.xx.xxx.xxx
Also, I get the same problem if I try and connect via the loopback address (127.0.0.1).
Any ideas?