在安装CentOS之后,当我尝试通过ssh进行远程连接时,显示出这样的错误。 我该如何解决这个问题?
Siam-Wannakosits-MacBook-Pro:~ragopor$ ssh [email protected] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is b8:23:20:f7:d5:7c:1f:5f:f5:9c:ee:46:67:19:58:68. Please contact your system administrator. Add correct host key in /Users/ragopor/.ssh/known_hosts to get rid of this message. Offending key in /Users/ragopor/.ssh/known_hosts:5 RSA host key for 192.168.1.10 has changed and you have requested strict checking. Host key verification failed.
打开本地计算机上的/Users/ragopor/.ssh/known_hosts Pro)并删除第五行,保存/Users/ragopor/.ssh/known_hosts试。
或者,如果你想有东西,你可以放在terminal:
sudo awk 'NR!=5' /Users/ragopor/.ssh/known_hosts > /Users/ragopor/.ssh/known_hosts