/ mozey.co / blog

offending ssh key

June 1, 2015

To fix the following message

Offending key in /path/to/known_hosts

Find the relevant line in known_hosts and remove it like this

sudo ssh-keygen -H -F SERVER_IP_ADDRESS

Search for the line in known_hosts and delete it