22
4
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 ~/.ssh/known_hosts
. But, the ~/.ssh
directory seems to be empty.
Where is the known_hosts file for Powershell/OpenSSH? I've checked in C:\Program Files\OpenSSH\home\anschauung\.ssh
, but that folder is empty as well.
Don't remove it. Update the line to change the IP address from the old one to the new one to avoid opening a window for an attacker to impersonate the host. – cjs – 2016-12-12T02:07:09.987