Removing offending key in known_hostsAugust 5, 2010 in Uncategorized tagged Linux by Greg sed -i '53d' ~/.ssh/known_hosts Run in your home directory. Replace “53” with the line number referred to in the known_hosts error from the ssh login attempt. You need the “d”. If you had line 12, then you’ll show ’12d’ in that sed command.