If you access via SSH-error WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

If you have when you try to log in via SSH with a Unix-like system to another (or MacOS), the following error occurs:

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

In the Terminal looks like this all along the following lines:
@ @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @, @ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone’s eavesdropping Centre could be on you right now (man-in-the-middle attack)! It is also possible that the DSA host key has just been changed. The fingerprint for the DSA key sent by the remote host is Please contact your system administrator. Add correct host key in/root/.ssh/known_hosts to get rid of this message. Offending key in/root/.ssh/known_hosts: 1 DSA host key for 192.168.0.2 has changed and you have requested strict checking. Host key verification failed.

Most likely the problem is that ssh keys have changed and therefore to the security system does not allow access.

Is as follows:

Go to the user’s home directory from which to sit and delete the file .ssh/known_hosts

For example, you can do so like this:
CD ~
RM .ssh/known_hosts

Then when you try to log on again, the system will create a new ssh key.