SSH with RSA/DSA key permission denied
Everything works just fine if I use password authentication, after editing /etc/sshd_config to allow it, so it would seem it's not firewalls or something like that.
Does anyone have any idea about where I'm going wrong?
A run with the -v flag is below in case it helps someone:
-bash-3.1$ ssh -v -l [myusername] [my.Mac's.address]
OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to [my.Mac's.address] [my.Mac's.I.P] port 22.
debug1: Connection established.
debug1: identity file /u1/cs2/saw4/.ssh/identity type -1
debug1: identity file /u1/cs2/saw4/.ssh/id_rsa type -1
debug1: identity file /u1/cs2/saw4/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.5
debug1: match: OpenSSH_4.5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2 MSGKEXINIT sent
debug1: SSH2 MSGKEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2 MSG_KEX_DH_GEXREQUEST(1024<1024<8192) sent
debug1: expecting SSH2 MSG_KEX_DH_GEXGROUP
debug1: SSH2 MSG_KEX_DH_GEXINIT sent
debug1: expecting SSH2 MSG_KEX_DH_GEXREPLY
debug1: Host '[my.Mac's.address]' is known and matches the RSA host key.
debug1: Found key in /u1/cs2/saw4/.ssh/known_hosts:1
debug1: ssh rsaverify: signature correct
debug1: SSH2 MSGNEWKEYS sent
debug1: expecting SSH2 MSGNEWKEYS
debug1: SSH2 MSGNEWKEYS received
debug1: SSH2 MSG_SERVICEREQUEST sent
debug1: SSH2 MSG_SERVICEACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive
debug1: Next authentication method: gssapi-with-mic
debug1: Miscellaneous failure
No credentials cache found
debug1: Miscellaneous failure
No credentials cache found
debug1: Next authentication method: publickey
debug1: Trying private key: /u1/cs2/saw4/.ssh/identity
debug1: Trying private key: /u1/cs2/saw4/.ssh/id_rsa
debug1: PEM readPrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key '/u1/cs2/saw4/.ssh/id_rsa':
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive
debug1: Trying private key: /u1/cs2/saw4/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).
MacBook Pro Mac OS X (10.4.9)
MacBook Pro Mac OS X (10.4.9)
MacBook Pro, Mac OS X (10.4.9)