Problem with ssh-keyscan: no hostkey alg

Patrick Maigron Patrick.Maigron at int-evry.fr
Wed Feb 13 04:37:11 EST 2002


Hi,

I am using ssh-keyscan with a list of hosts, such as:
ssh-keyscan -t rsa -f hosts_for_keyscan

Some of the hosts in the list have dsa, but no rsa keys. For such
hosts, the command displays:
no hostkey alg

When this is the case for 2 hosts, this message appears twice AND
SSH-KEYSCAN STOPS QUERYING, which means that no keys at all are
returned for the following hosts.

Here is the part of the trace corresponding to the problem. In this
example hosts 157.159.100.120 and 157.159.100.122 have dsa but no rsa
keys.

(The problem is even more annoying if I use ssh-keyscan -t rsa1,rsa,dsa,
because after the 2 hosts the whole command stops and NO RSA1 KEYS AT
ALL ARE RETRIEVED.)

It seems that a function cleanup is called for the first host, and
not the second one ?

Patrick.

-----

> ssh-keyscan -v -t rsa -f hosts_for_keyscan > known_hosts_from_keyscan
...
# 157.159.100.120 SSH-1.99-OpenSSH_2.3.0p1
Enabling compatibility mode for protocol 2.0
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
no hostkey alg
debug1: Calling cleanup 0x21ba0(0x0)
debug1: Calling cleanup 0x21ba0(0x0)
debug1: Calling cleanup 0x21ba0(0x0)
debug1: Calling cleanup 0x21ba0(0x0)
debug1: Calling cleanup 0x21ba0(0x0)
debug1: Calling cleanup 0x21ba0(0x0)
debug1: Calling cleanup 0x21ba0(0x0)
debug1: Calling cleanup 0x21ba0(0x0)
debug1: Calling cleanup 0x21ba0(0x0)
debug1: Calling cleanup 0x21ba0(0x0)
debug1: Calling cleanup 0x1c324(0x0)
debug1: match: OpenSSH_2.3.0p1 pat ^OpenSSH_2\.3\.0
# 157.159.100.122 SSH-1.99-OpenSSH_2.3.0p1
Enabling compatibility mode for protocol 2.0
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
no hostkey alg
debug1: writing PRNG seed to file /Users/teleinf4/patrick/.ssh/prng_seed



More information about the openssh-unix-dev mailing list