FG

Where is the known_hosts file for OpenSSH for Windows?

Fresh3 days ago
Mar 15, 2026258286 views
Confidence Score0%
0%

Problem

One of the servers I frequently log into via SSH has changed it's IP address. So, now I'm getting man in the middle attack warnings when I try to use SSH via Windows Powershell and OpenSSH for Windows. On a linux machine, I would just remove the offending line from . But, the directory seems to be …

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: Where is the known_hosts file for OpenSSH for Windows?

Low Risk

On windows it is usually stored in the or folders. If you type into the Windows explorer address bar it will be expanded automatically. You can also try or from a command prompt. Also see: https://stackoverflow.com/questions/32945533/is-there-a-defi…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment