Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to SSH after change in RSA key?

he RSA host key for 7insights.com has changed,
and the key for the corresponding IP address 8.17.170.226
is unchanged. 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.
Offending key for IP in /Users/desmond/.ssh/known_hosts:6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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.
Trying to start an SSH, the server RSA key has changed, I get this failure message:

The fingerprint for the RSA key sent by the remote host is
........
Please contact your system administrator.
Add correct host key in /Users/me/.ssh/known_hosts to get rid of this message.
Offending key in /Users/me/.ssh/known_hosts:4
RSA host key for <domain> has changed and you have requested strict checking.
Host key verification failed.

How to I reset this so it will work?

Thanks!

mini, Mac OS X (10.5.6)

Posted on Feb 18, 2010 9:14 PM

Reply
2 replies

Feb 19, 2010 7:55 AM in response to itsme213

The important lines from the error message are:

Offending key for IP in /Users/desmond/.ssh/known_hosts:6
Offending key in /Users/me/.ssh/known_hosts:4

The number at the end is the line number in known_hosts

Delete those lines, and the error will go away.
The most common reason for this is that the specified system
has been re-imaged (OS Reinstalled).

HOWEVER, if this happens for no explained reason,
then you do want to wonder if someone is trying a
"Man in the Middle" attack.

How to SSH after change in RSA key?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.