Need to remove the old key from your known_hosts file

Submitted by antoine on

You need to remove the old key from your known_hosts file. This will also work on a debian linux or probably a mac too.

Option 1

Run this in PowerShell:

ssh-keygen -R 192.168.8.221

This will automatically remove the offending line.

Then reconnect:

ssh master@192.168.8.221

You’ll see:

The authenticity of host '192.168.8.221' can't be established.
Are you sure you want to continue connecting (yes/no/[fingerprint])?

Type:

yes
Tags