On Wed, Feb 18, 2009 at 12:04 PM, Shakthi Kannan <[email protected]>wrote:

> Hi,
>
> --- On Wed, 18 Feb 2009 11:34:43 +0000 Yashpal Nagar
> <[email protected]> wrote:
> | When i tried to ssh this server it gave me offending key warning on my
> | local
> | server (/home/yash/.ssh/known_hosts)  because I had recently formatted
> | the
> | target host, So the finger print/key is changed which is normal.
> \--
>
> You can remove the offending key by using:
>
>  ssh-keygen -R <hostname>
>
> Replace <hostname> with the machines' hostname or IP address.
>

Precisely something like this I was looking for, which is a clean way of
doing this.

But .ssh/known_hosts doesn't record the keys with hostname/IPs, atleast with
OpenSSH_4.7 with Ubuntu. So this option is not helpful.

I understand older openssh-clients-3.6.1p2-18 such as on RHEL 3.0, records
keys along with IP/hostnames But there is no "-R" option with ssh-keygen!

So, I'm still trapped, to find more.

Cheers!
Yash
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[email protected]/

Reply via email to