Manual Pages: 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).
via openbsd.org
每次都忘了。當 ssh 的 known_hosts 裡面的 key 不一樣時,會跳出不能登的訊息,可以直接刪掉那個檔案,也可以開檔把特定行數的 host 拿掉。
其實用 ssh-keygen -R gaisq.cs.ccu.edu.tw 就可以幫你處理。特別是加過 hashed 的 known_hosts 也可以。
另外還有 -F 與 -H 參數,都是與 known_hosts 相關的。