今天用scp命令復制時,提示如下錯誤:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 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 is25:ab:2e:55:30:11:a0:84:d8:45:2f:5b:e2:47:eb:1e.Please contact your system administrator.Add correct host key in /root/.ssh/known_hosts to get rid of this message.Offending key in /root/.ssh/known_hosts:1RSA host key for 192.168.1.240 has changed and you have requested strict checking.Host key verification failed.lost connection
開始我以為是命令錯誤,仔細一看,原來是密鑰驗證錯誤,可能是我的賬號信息做過更改。
找到該用戶家目錄下的如下的ssh連接文件夾:1. cd ~/.ssh/2. vi known_hosts3. 找到和遠程主機ip一致的密鑰保存信息,直接dd刪除那一行信息,然后保存退出4. 重新連接,輸入密碼,發現連接成功
問題解決
本文出自 “原下” 博客
詳細請參考:http://www.codesky.net/article/201107/133930.html
新聞熱點
疑難解答