@    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 a host key has just been changed.

The fingerprint for the RSA key sent by the remote host isSHA256: Please contact your system administrator. Add correct host keyin /Users/Anan/.ssh/known_hosts to get rid of this message.

Offending RSA key in /Users/Anan/.ssh/known_hosts:1

RSA host key forHere is the server IP has changedand you have requested strict checking.

Host key verification failed.Copy the code

The reason for this information is that on the first SSH connection, an authentication is generated and stored in known_hosts in the client. But if the server authenticates this, the authentication information will of course change. So, just delete the authentication information from the computer, regenerate it when connected, and everything is perfect. This is as simple as typing a command in the client

Ssh-keygen -r + Enter the IP address of the serverCopy the code

Then connect again and it will appear

Are you sure you want to continue connecting (yes/no)?Copy the code

Type yes and you’re done! At the same time, the new authentication is also generated using the terminal to connect to the server under the MAC

ssh root@Server addressCopy the code