Adding Correct Host Key

Manny kcmanny at gmail.com
Mon Feb 21 03:21:19 UTC 2005


Okay. I'll try to remember that next time when I reply back.


On Sun, 20 Feb 2005 18:13:06 -0500, David Curry <dsccable at comcast.net> wrote:
> Manny wrote:
> 
> >Yeah! I just did what the first guy said to do and it worked. All I
> >did was removed the IP and then I attempted another ssh connection and
> >it asked to exchange keys. I said "yes" and the connection was
> >established.
> >
> >
> >On Sun, 20 Feb 2005 18:47:04 +0100, Angelo Machils
> ><angelus at sangreal.demon.nl> wrote:
> >
> >
> >>>I was wondering if anyone knew how to remove a host key and add a new
> >>>one to .ssh/known_hosts
> >>>
> >>>I just recently reinstalled FC3 on one of my systems. I previously had
> >>>an ssh connection established, but after I reinstalled I imagine it
> >>>was wiped away. So my question is...How do I re-establish my ssh
> >>>connection to that host?
> >>>
> >>>Is it as simple as going into .ssh/ and doing:
> >>>rm known_hosts
> >>>
> >>>
> >>>
> >>Don't remove the whole file, only the line where the key is for that
> >>particular system. After your reinstall the system generated a new key,
> >>but in the known_hosts file on the system where you initiate the ssh
> >>connection there is still the old key. They don't match, so you don't
> >>connect :)
> >>
> >>Regards, Angelo
> >>
> >>--
> >>fedora-list mailing list
> >>fedora-list at redhat.com
> >>To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> >>
> >>
> >>
> >
> >
> >
> Please bottom post so readers can follow the flow of commentary.
>




More information about the fedora-list mailing list