ssh-agent and id_dsa

Markus Friedl Markus.Friedl at informatik.uni-erlangen.de
Thu Mar 8 23:29:00 EST 2001


On Thu, Mar 08, 2001 at 12:49:43PM +0100, Lutz Jaenicke wrote:
> debug1: userauth_pubkey_agent: testing agent key /home/aet/serv01/jaenicke/.ssh/id_rsa
> debug2: we sent a publickey packet, wait for reply
> debug1: input_userauth_pk_ok: pkalg ssh-rsa blen 149 lastkey 4001da88 hint -1

i don't understand why 'ssh' does not try to send a pubkey packet.

could you please add debug statements to the 'if':

        if (authctxt->last_key != NULL &&
            authctxt->last_key_sign != NULL &&
            key_type_from_name(pkalg) != KEY_UNSPEC &&
-> debug key_type_from_name(pkalg)
            (key = key_from_blob(pkblob, blen)) != NULL &&
-> debug %p, key
-> debug key_fingerprint(key)
-> debug key_fingerprint(authctxt->last_key)
            key_equal(key, authctxt->last_key)) {
                debug2("input_userauth_pk_ok: fp %s", key_fingerprint(key));
                sent = sign_and_send_pubkey(authctxt, key,
                   authctxt->last_key_sign);
        }


> debug3: authmethod_lookup publickey
> debug3: authmethod_is_enabled publickey
> debug1: next auth method to try is publickey
> debug2: userauth_pubkey_agent: no more keys
> debug2: userauth_pubkey_agent: no message sent
> debug1: try pubkey: /home/aet/serv01/jaenicke/.ssh/id_rsa
> debug2: we sent a publickey packet, wait for reply
> Disconnecting: protocol error: rcvd type 60
> debug1: Calling cleanup 0x4000dffa(0x0)
> 
> I can also add my id_dsa key into ssh-agent to no avail:
> debug1: send SSH2_MSG_SERVICE_REQUEST
> debug1: service_accept: ssh-userauth
> debug1: got SSH2_MSG_SERVICE_ACCEPT
> debug1: authentications that can continue: publickey,password,keyboard-interactive
> debug3: start over, passed a different list
> debug3: authmethod_lookup publickey
> debug3: authmethod_is_enabled publickey
> debug1: next auth method to try is publickey
> debug1: userauth_pubkey_agent: testing agent key /home/aet/serv01/jaenicke/.ssh/id_rsa
> debug2: we sent a publickey packet, wait for reply
> debug1: input_userauth_pk_ok: pkalg ssh-rsa blen 149 lastkey 4001da88 hint -1
> debug3: authmethod_lookup publickey
> debug3: authmethod_is_enabled publickey
> debug1: next auth method to try is publickey
> debug1: userauth_pubkey_agent: testing agent key /home/aet/serv01/jaenicke/.ssh/id_dsa
> debug2: we sent a publickey packet, wait for reply
> Disconnecting: protocol error: rcvd type 60
> debug1: Calling cleanup 0x4000dffa(0x0)
> 
> Best regards,
> 	Lutz
> -- 
> Lutz Jaenicke                             Lutz.Jaenicke at aet.TU-Cottbus.DE
> BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
> Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
> Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153
> 





More information about the openssh-unix-dev mailing list