Forums | MacLife
You are not logged in.
#1 2009-02-23 2:19 pm
Need help fixing my SSH...
Code:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The RSA host key for natalie.local has changed, and the key for the corresponding IP address fe80::20d:93ff:fe42:aa02%en0 is unknown. This could either mean that DNS SPOOFING is happening or the IP address for the host and its host key have changed at the same time. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is b7:f8:ce:2c:4a:42:ae:c0:f1:7f:ab:4f:9c:e2:05:aa. Please contact your system administrator. Add correct host key in /Users/jasoco/.ssh/known_hosts to get rid of this message. Offending key in /Users/jasoco/.ssh/known_hosts:3 RSA host key for natalie.local has changed and you have requested strict checking. Host key verification failed.
I know what it means, I know why it does it, but I don't know exactly how to fix it so I can SSH back in again.
How do I edit that file, what do I use to do it safely, and which computer do I edit it on? The one I am on, or the one I am trying to connect to?
Offline
#2 2009-02-23 3:14 pm
- Fracai
- Evacipate

- From: St. Elsewhere
- Registered: 2000-05-25
- Posts: 2835
Re: Need help fixing my SSH...
you need to edit your known_hosts file ( /Users/jasoco/.ssh/known_hosts ) and remove the old key. The file is 1 key per line, so just delete the whole line containing the matching host and key.
Offline
#3 2009-02-23 3:15 pm
- Fracai
- Evacipate

- From: St. Elsewhere
- Registered: 2000-05-25
- Posts: 2835
Re: Need help fixing my SSH...
Sorry, it's on your local computer and any text editor should be fine.
Offline
#4 2009-02-23 3:38 pm
Re: Need help fixing my SSH...
Thank you! I wasn't sure which computer I needed to edit! And was afraid I had to use a certain editor like a Unix one, which I am still not familiar with. I prefer good old fashioned GUI-based TextWrangler.
That's been bugging me for months. Just never got around to asking.
Thanks again!
Offline

