环境运维

远程服务器重装系统后,ssh登录时报错信息

wangyuqiang@192 ~ % ssh root@121.4x.xxx.xxx

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    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:25wHIQM2MjgVaUSjb/5aUYbmCGRJvnkT2IMEF3dOckY.

Please contact your system administrator.

Add correct host key in /Users/xxxxxxxx/.ssh/known_hosts to get rid of this message.

Offending ED25519 key in /Users/xxxxxxx/.ssh/known_hosts:27

Host key for 121.4x.xxx.xxx has changed and you have requested strict checking.

Host key verification failed.

 

解决办法:

vim .ssh/know_hosts

删除对应的服务器相关信息,就可以重新连接了