FG

Remove key from known_hosts

Fresh3 days ago
Mar 15, 2026883442 views
Confidence Score1%
1%

Problem

I built several virtual machines during the last few weeks. The problem is, the gives me the Man in the middle warning. This happens because another fingerprint is associated with the virtual machine IP. In the file, however, I don't find the record related to the IP, only two bizarre, key-like strings and "ssh-rsa". Does anyone have any ideas about how to remove the old key from ?

Error Output

.ssh/known_hosts

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Remove key from known_hosts

Low Risk

There is an ssh-keygen switch ( ) for this. reads: hostname Removes all keys belonging to from a file. This option is useful to delete hashed hosts (see the option above).

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment