Re: Adding Correct Host Key

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

 





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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux