Ok, I have done a lot of reading , and this *should* work, but it isn't.
Here is the situation: I am trying to use publickey authentication with SSH to access a Linux box on my private network. I have set this up elsewhere before and gotten it to work. Here, for some reason, it isn't.
Local permissions:
~/.ssh/ 700
id_rsa 600
id_rsa.pub 644
Remote permissions:
~/.ssh/ 700
authorized_keys 644
Of course, authorized keys contains the contents of the id_rsa.pub file
So, presuming all of that is correct, here is what happens when I try to connect:
Code:
$ ssh -v jeff@jupiter
OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to jupiter [192.168.0.55] port 22.
debug1: Connection established.
debug1: identity file /home/Jeff/.ssh/identity type -1
debug1: identity file /home/Jeff/.ssh/id_rsa type 1
debug1: identity file /home/Jeff/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.5p1
debug1: match: OpenSSH_3.5p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.8p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'jupiter' is known and matches the RSA host key.
debug1: Found key in /home/Jeff/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interacti
ve
debug1: Next authentication method: publickey
debug1: Trying private key: /home/Jeff/.ssh/identity
debug1: Offering public key: /home/Jeff/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interacti
ve
debug1: Trying private key: /home/Jeff/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interacti
ve
debug1: Next authentication method: password
jeff@jupiter's password:
As you can see, the session gives up on the publickey and goes for the password.
I'm not sure what the problem is. It looks like here:
Code:
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
there may be an issue, since what it was sent and what it expected were different. Otherwise, I have no idea what the problem could be. If anyone could shed some light on this it would really be appreciated.
Thanks in advance