SSH 登录警告: 远程主机标识已更改
我最近以重新设置/改装我 VPS 的服务器之一和使用 SSH 登录以远程从 Mac OS X 终端会话。我了出现糟糕丑陋美观错误在首次。我了解进一步探索,到这是只需事实时只需重建服务器,因为主机密钥信息不是客户端需要的项目。高兴地这是从命令行上的客户端快速解决问题,然后我已重新启动并运行。
难题 基本-1 |中-2 |高级-3
所需时间 2 最小
相关的产品 基于 Linux 的 VPS 或专属的服务器
您可能会看到一个错误,如下所示:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
06:ea:f1:f8:db:75:5c:0c:af:15:d7:99:2d:ef:08:2a.
Please contact your system administrator.
Add correct host key in /home/user/.ssh/known_hosts to get rid of this message.
Offending key in /home/user/.ssh/known_hosts:4
RSA host key for domain.com has changed and you have requested strict checking.
Host key verification failed.
在 OS X 终端命令行中,键入:
ssh-keygen -R [your domain name or IP address]
这将清除客户端主机文件上的问题。
下一次键入使用 SSH 连接到主机,您应该会再看到一些类似:
The authenticity of host ‘[your host information]’ can’t be established.
RSA key fingerprint is 06:ea:f1:f8:db:75:5c:0c:af:15:d7:99:2d:ef:08:2a.
Are you sure you want to continue connecting (yes/no)?
目前,您可以键入"",并继续处理 SSH 登录过程。