Is there a very easy means to upgrade details in known_hosts when you recognize that a hosts key has transformed?

If a host is running system has actually been re - mounted and also had its public key regenerated sshing to it will certainly certainly fall short due to the fact that the new key does not match the old one.

Exists a less complicated means to inform ssh that you recognize that the host is key has actually transformed which you desire it to be upgraded. I assume it really feels a little bit mistake - vulnerable to make use of a full-screen editor or something like sed to remove the annoying line.

0
2019-05-18 23:22:24
Source Share
Answers: 1

Use ssh-keygen -R hostname to remove the hostname from your known_hosts documents. The next time you connect, the new host key will certainly be included in your known_hosts documents.

0
2019-05-21 10:38:17
Source