ssh-agent and id_dsa

Lutz Jaenicke Lutz.Jaenicke at aet.TU-Cottbus.DE
Fri Mar 9 00:37:14 EST 2001


On Thu, Mar 08, 2001 at 01:29:00PM +0100, Markus Friedl wrote:
> 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':

I have used the following construct:
...
        debug("input_userauth_pk_ok: pkalg %s blen %d lastkey %p hint %d",
            pkalg, blen, authctxt->last_key, authctxt->last_key_hint);
 
debug2("key_type_from_name(pkalg)=%d", key_type_from_name(pkalg));
            key = key_from_blob(pkblob, blen);
debug2("key at %p", key);
debug2("key_fingerprint(key)=%s", key_fingerprint(key));
debug2("key_fingerprint(authctxt->last_key)=%s", key_fingerprint(authctxt->last_key));
        if (authctxt->last_key != NULL &&
            authctxt->last_key_sign != NULL &&
            key_type_from_name(pkalg) != KEY_UNSPEC &&
            (key = key_from_blob(pkblob, blen)) != NULL &&
            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);
        }
...
and found the following result:
debug1: input_userauth_pk_ok: pkalg ssh-rsa blen 149 lastkey 4001db08 hint -1
debug2: key_type_from_name(pkalg)=1
debug2: key at 40028ad0
debug2: key_fingerprint(key)=04:c5:6a:dc:b9:44:e9:be:0a:5f:43:77:c5:49:21:83
key_fingerprint: bad key type 26669
debug1: Calling cleanup 0x4000e06a(0x0)

Following this output it seems, that something is strange with
  authctxt->last_key

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