Now lets take a look at part of the error: Offending RSA key in /Users/sudoed/.ssh/known_hosts:8
Sed continues to become one of my most powerful tools in my box. And “DD” to delete the line, and :wq the hell out of there! sed – Someday I should learn that
In the case listed above it starts with :2222. Typically when I’ve been slapped in the face with this alert I am usually in an heated situation where I don’t have time to mess around. I have my usual method of handeling this, but I thought I would quickly look at the other methods that might be useful. Yup, shocking as it may seem, you have one again managed to find another server called localhost! RSA host key for :2222 has changed and you have requested strict checking. Offending RSA key in /Users/sudoed/.ssh/known_hosts:8 Please contact your system administrator.Īdd correct host key in /Users/sudoed/.ssh/known_hosts to get rid of this message. It is also possible that a host key has just been changed. Someone could be eavesdropping on you right now (man-in-the-middle attack)! You’re smacked in the face by this ugly chunk of message: $ ssh -p2222 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! slapping away at your keyboard – Perhaps hoping through an SSH tunnel, or maybe SSHing into a NAT’d virtualbox vm, and suddenly BAM!.