WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
时间: 2023-08-26 19:10:42 浏览: 95
回答: 当出现"WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!"的报错时,这意味着远程主机的身份验证信息发生了变化。可能是由于某些不良行为,例如中间人攻击,或者是主机密钥发生了变化。为了解决这个问题,你可以执行以下步骤:首先,删除记录在路径~/.ssh/known_hosts中的公钥信息,可以使用指令"ssh-keygen -R XXX(ip地址)"来执行这个动作。这个指令会删除指定IP地址的公钥信息,并备份原来的公钥信息。另外,你也可以手动删除指定的IP地址,使用vi/vim打开known_hosts文件,里面的内容是以密文形式保存的,这是为了增加安全性。你可以使用指令"ssh-keyscan XXX(IP地址)"来查询某个IP地址的密文。\[2\]\[3\]
#### 引用[.reference_title]
- *1* [WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!](https://blog.csdn.net/m0_73694897/article/details/129681845)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [【linux】WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED 解决方法](https://blog.csdn.net/qq_41884002/article/details/123358315)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文