$ ssh root@10.3.0.115
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:CIxWlug9vwd2jdlatMmp1+xWXORX8oD8Kj6l9RKuosA.
Please contact your system administrator.
Add correct host key in /Users/zoe/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/zoe/.ssh/known_hosts:11
ECDSA host key for 10.3.0.115 has changed and you have requested strict checking.
Host key verification failed.
known_hosts是記錄遠程主機的公鑰的文件蓄拣,之前重裝個系統(tǒng),而保存的公鑰還是未重裝系統(tǒng)的系統(tǒng)公鑰徒仓,在ssh鏈接的時候首先會驗證公鑰,如果公鑰不對誊垢,那么就會報錯掉弛,
解決辦法:
$ sudo vi ~/.ssh/known_hosts
1、將known_hosts文件中的與登錄錯誤的IP的公鑰刪除即可
2喂走、再次ssh登陸即可殃饿。