REMOTE HOST IDENTIFICATION HAS CHANGED问题解决

简介: REMOTE HOST IDENTIFICATION HAS CHANGED问题解决

背景

ssh连接至云服务器时,提示以下错误:

image.png


原因是第一次使用SSH连接时,会生成一个认证,储存在客户端的known_hosts中。

可使用以下指令查看:

  • ssh-keygen -l -f ~/.ssh/known_hosts


由于服务器重新安装系统了,所以会出现以上错误。


解决方案

ssh-keygen -R 服务器端的ip地址


image.png


重新连线,出现以下提示:


image.png


输入yes确认即可连线成功。


目录
相关文章
【已解决】kex_exchange_identification: Connection closed by remote host fatal: Could not read from
【已解决】kex_exchange_identification: Connection closed by remote host fatal: Could not read from
|
6月前
|
缓存 网络安全 开发工具
Git服务器报错:host key for (ip地址) has changed and you have requested strict checking
Git服务器报错:host key for (ip地址) has changed and you have requested strict checking
533 0
|
6月前
|
缓存 数据安全/隐私保护 Windows
ECDSA host key for ... has changed and you have requested strict checking.Host key verification fail
ECDSA host key for ... has changed and you have requested strict checking.Host key verification fail
|
6月前
|
网络安全
完美解决 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
完美解决 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
1909 0
|
应用服务中间件
Error:Remote staging type or host is not specified.
Error:Remote staging type or host is not specified.
159 0
|
开发工具 git
git push报错:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
git push报错:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
189 0
|
数据安全/隐私保护
remote: Support for password authentication was removed on August 13, 2021
remote: Support for password authentication was removed on August 13, 2021
205 0
|
Linux 网络安全
WARNING:The remote SSH server rejected X11 forwarding request.
WARNING:The remote SSH server rejected X11 forwarding request.
202 0
WARNING:The remote SSH server rejected X11 forwarding request.
|
开发工具 git
【Git】WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
【Git】WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
147 0
【Git】WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
|
网络安全
SSH 遇到 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
SSH 遇到 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
274 0