WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
WorkSpace>git clone git@github.com:******/****.git
Cloning into '******'...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:uNiVz**********************Cvj3tD2s.
Please contact your system administrator.
Add correct host key in /c/Users/******/.ssh/known_hosts to get rid of this message.
Offending RSA key in /c/Users/******/.ssh/known_hosts:1
Host key for github.com has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
当使用 SSH 连接到远程主机时,如果主机的身份验证信息发生了变化,可能会收到“WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!”的警告消息。这通常发生在以下情况下:
- 远程主机的操作系统或 SSH 密钥已更改。
- 尝试连接到与之前不同的主机。
为了解决这个问题,可以采取以下步骤:
-
验证主机身份:首先,需要验证远程主机的身份。可以使用主机管理员提供的公钥或其他可靠来源来验证主机的身份。
-
清除本地密钥缓存:如果仍然收到警告消息,可能需要清除本地密钥缓存。使用以下命令清除 SSH 客户端的本地密钥缓存:
ssh-keygen -R <hostname or IP address>
或者可以手动编辑本地主机的 known_hosts 文件,并删除与远程主机相关的行。known_hosts 文件通常位于~/.ssh/目录中。
-
重新连接:清除本地密钥缓存后,可以尝试重新连接到远程主机。如果仍然无法连接到主机,请确保尝试连接的是正确的主机,并且主机的 SSH 密钥与预期的一致。
如果仍然无法解决这个问题,可以尝试使用“StrictHostKeyChecking no”选项重新连接到主机,但这会降低安全性。建议在尝试此方法之前仔细考虑风险和利弊。
- IDENTIFICATION WARNING CHANGED REMOTE HOSTidentification warning changed remote identification changed warning remote identification warning changed办法 identification warning changed服务器 identification warning changed方法 identification错误warning changed identification错误changed remote 密钥identification changed remote identification changed代码github quot ssh_exchange_identification host identification