Remove entry in ~/.ssh/known_hosts Posted on 26/01/202226/01/2022 by Bian Xi Leave a Comment on Remove entry in ~/.ssh/known_hosts Remove entry in ~/.ssh/known_hosts This is required if host key replaced in target server. ssh-keygen -R HOSTNAME ssh-keygen -R IP_ADDRESS References Change Host Keys Used by SSH Connections