ssh 連接服務(wù)器 報如下錯誤:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:9IbjRevN82JiX9xPE/kSaXHCb4gD7eso13lBiAoGh3Y.
Please contact your system administrator.
Add correct host key in /Users/gezhaoyou/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/gezhaoyou/.ssh/known_hosts:23
ECDSA host key for 192.168.9.174 has changed and you have requested strict checking.
Host key verification failed.
解決方法:
原因是系統(tǒng)有改變,導(dǎo)致加密的密鑰改變,因此本地保存的密鑰失效;
錯誤中已經(jīng)提示:Offending ECDSA key in /Users/gezhaoyou/.ssh/known_hosts:23;
刪除 ~/.ssh/known_hosts
文件中指定23行隧枫,指定IP的密鑰即可峭判。