Re: How to get new RSA key in known_hosts file?
On Fri, 25 May 2012 17:37:45 +1000
Scott Ferguson <scott.ferguson.debian.user@gmail.com> wrote:
> On 25/05/12 17:00, Markus Schönhaber wrote:
> <snipped>
>
> > man ssh-keygen
> > | -R hostname
> > | Removes all keys belonging to hostname from a known_hosts
> > | file. This option is useful to delete hashed hosts (see the -H
> > option above).
> >
> > One can, of course, edit known_hosts manually to achieve the same
> > effect.
>
>
> >But I consider ssh-keygen -R to be the safer method.
>
> And I agree.
> And thanks for reminding me to read the man - I'd simply confirmed that
> the quoted command didn't work without realising it was just wrongly used.
>
>
> Please read the post I was responding to again.... :-)
> "ssh-keygen -R your_hostname_or_ip_address" *will not solve the OP's
> problem*.
>
> Which would explain the OP's reponse to that.
>
>
> ssh-keygen -R the_remote_ip_address *will work*
> as will deleting the conflicting entry in known_hosts
Of course - when I wrote 'your', I meant the remote host. Sorry.
Celejar
Reply to: