重装服务器系统后,ssh连接失败的解决办法

错误信息

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 ECDSA key sent by the remote host is
SHA256:ukgcmGaOUR7xm3pdU4Kz66vHffMWvBwsrTlPm+cTNBw.
Please contact your system administrator.
Add correct host key in /Users/Flinn/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/Flinn/.ssh/known_hosts:1
ECDSA host key for 139.224.233.28 has changed and you have requested strict checking.
Host key verification failed.

解决办法

ssh-keygen -R 192.168.233.14 #目标主机IP
ssh [email protected]

你可能感兴趣的:(重装服务器系统后,ssh连接失败的解决办法)