Benches macOS

2

How to SSH after change in RSA key?

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

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!

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    Sean Dale1

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    This thread may help.

  2. 0

    BobHarris

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    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.