10月 202016
转载请注明原文地址:http://bcoder.com/operatingsystem/the-method-to-solve-remote-host-identification-has-changed
在mac os下ssh登录的时候出现了如下错误:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 RSA key sent by the remote host is SHA256:5vuaB3OnzyT/hXdeckzmIRARZMczEj3fJJXYVV8sg10. Please contact your system administrator. Add correct host key in /Users/liuderu/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/liuderu/.ssh/known_hosts:4 RSA host key for 10.10.10.10 has changed and you have requested strict checking. Host key verification failed. |
解决办法:在命令行执行如下命令
1 |
vi ~/.ssh/known_hosts |
在打开的编辑器中删除相关的信息,按Esc,输入wq保存即可