ssh-keygen -R hostname

Category: SSH & Remote

ssh-keygen -R hostname

Remove a host's entry from known_hosts file

Removes a host's entry from your known_hosts file — necessary when a server's key changes to avoid a warning.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.