[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh-keygen

On Thu, 2007-05-03 at 00:40 -0400, KS wrote:
> Sudev Barar wrote:
> > On 03/05/07, KS <lists04@fastmail.fm> wrote:
> >> Allan Wind wrote:
> >> > On 2007-05-02T23:10:07-0400, KS wrote:
> >> >> However, ssh-keygen gives me the exact same output if I try to do it
> >> >> again even though the host does not exist in the file (same output
> >> with
> >> >> -v flag). Shouldn't it give a more informative output like: host entry
> >> >> not found in known_hosts file? Or am I missing something.
> > 
> > Should you not be removing the old host info from know_hosts file?
> > Typically the ssh failure out put contains either host name or line
> > number that failed where ever host side changes occur.
> > 
> That is what I did, although not with a text editor. I have a hashed
> version of known_hosts file and unlike the non-hashed file, couldn't
> find the line to remove. The warning contained something that might be
> line number to *change* but I wasn't sure. That was why I was trying to
> find a way to do it "automatically" (ssh-keygen) than firing up vi and
> removing the line.
> The warning had following in it, is the :3 in the end the line number?
> Add correct host key in /home/foobar/.ssh/known_hosts to get rid of this
> message.
> Offending key in /home/foobar/.ssh/known_hosts:3

Line number 3.

Remove that current line and you should be good.

greg, greg@gregfolkert.net

Novell's Directory Services is a competitive product to Microsoft's
Active Directory in much the same way that the Saturn V is a competitive
product to those dinky little model rockets that kids light off down at
the playfield. -- Thane Walkup

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: