Search ssh-keygen -H -F hostname Or, if SSH runs on port other than 22 ssh-keygen -H -F '[hostname]:2222' Remove ssh-keygen -R hostname