Solution for linux connection error REMOTE HOST IDENTIFICATION HAS CHANGED! via ssh

问题描述:在linux服务器上,通过ssh root@172.16.13.123  访问服务器报如下错误:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ED25519 key sent by the remote host is
SHA256:bdQu22ZQrKItMwKL2K/64vfF1brkRw6jpcD0Mxg5hsA.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:2
ED25519 host key for 172.16.13.123 has changed and you have requested strict checking.
Host key verification failed.

 

The reason is because the linux server has been accessed through this linux client before. When the server reinstalls the system, the client recognizes the error. The solution:

Go to ~/.ssh/known_hosts

172.16.13.123 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBB
OwpVaWRIO0ZrASBecJPvSVqAzOWTb8HUqApwQ69AUn/yJzEzsaBNwJ5On/ypVaWRIO0BJ5

Delete 172.16.13.123 related rsa information to access

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326995095&siteId=291194637