Re: ssh-keygen



Sudev Barar wrote:
On 03/05/07, KS <lists04@xxxxxxxxxxx> 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


Thanks,
/KS
PS: please reply to list, I'm subscribed to it.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: PF on OBSD 3.2 Question.
    ... Removing the gateway on the host is the worst solution to your problem. ... block in log quick on ep1 from 192.168.0.115/32 to any ...
    (comp.unix.bsd.openbsd.misc)
  • [2.6.24-rc minor bugfix] IB/srp: release transport before removing host
    ... The documented call sequence for removing a host is to call the ... transport used to crash when that order was followed, ...
    (Linux-Kernel)
  • cvsup current ports file
    ... "Cannot get IP address of my own host -- is its hostname correct?" ... Is there something I am missing? ... To unsubscribe, ...
    (freebsd-current)
  • Re: Pat Lawlor speech rehosted
    ... considering as nobody has privately e-mailed me nor my host ... about removing these files, I don't think anyone is too upset about ...
    (rec.games.pinball)
  • Re: ssh-keygen
    ... Should you not be removing the old host info from know_hosts file? ... Novell's Directory Services is a competitive product to Microsoft's ...
    (Debian-User)