[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: known_hosts file format
[Thread Prev] | [Thread Next]
- Subject: Re: known_hosts file format
- From: Aris Adamantiadis <aris@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 02 Feb 2011 14:13:27 +0100
- To: libssh@xxxxxxxxxx
Hi Norbert, This is not a known issue. I personally never used comments in SSH keys. My explanation to that part of code that doesn't accept 5 fields has been written before OpenSSH published documentation around the known_hosts key format. However, most of the keys I see in my own known hosts file are from the type |1|hash ssh-rsa key or host ssh-rsa key could you paste us a sample of pubkey that doesn't work ? Thanks, Aris Le 02/02/11 13:00, Norbert Paschedag a écrit : > Hi, > > I ran into problems with a number of hosts whose host keys libssh > absolutely refused to recognize. It turned out that their known_hosts > entry had an extra comment field, which, according to the openssh docs, > is valid: > > "Each line in these files contains the following fields: hostnames, > bits, exponent, modulus, comment. The fields are separated by spaces." > > libssh, however, completely ignores such entries arguing that 5 fields are > never valid (keyfiles.c:1309 in 0.4.8). > > Is this a known incompatibility (haven't seen any note on it) or am I just > the first to notice this ? > > Norbert > >
Re: known_hosts file format | Norbert Paschedag <noe@xxxxxxxxxxxxx> |
known_hosts file format | Norbert Paschedag <noe@xxxxxxxxxxxxx> |