So as is usual I have a dual boot Kubunutu / Windows 7 box (with cygwin), at certain static IP of local 192.168.0.x range, and I want to SSH to it from my other boxes regardless of which system it's running.
The thing is - I configured Kubuntu and Windows 7 parts separately, so they have different ssh host key (that's inherent in these dual boot setup), but also usernames, and IdentityFile
(that is pretty awkward, I just didn't think much of it when I choose Windows 7 account name) and ssh goes crazy because every time I boot to a different OS it thinks someone is MITMing since key for same IP changed.
What's the best I can do here? Deleting ~/.ssh/known_hosts
and commenting out different part of ~/.ssh/config
every time I log in sort of works, but I'd rather solve it properly-ish.