简体   繁体   English

查找我的有效RSA主机密钥

[英]Finding my Valid RSA Host Key

I recently migrated one of my domains to a new hosting service, so I switched the DNS name servers, moved the content to the new hosting service, etc. 我最近将我的一个域迁移到了一个新的托管服务,所以我切换了DNS名称服务器,将内容移动到新的托管服务等。

Now I am trying to log into the site (now on the new host) and there seems to be a problem on my own machine regarding this issue. 现在我正在尝试登录该站点(现在在新主机上),并且我自己的机器上似乎有关于此问题的问题。

Question: Where and How do I find the new correct RSA key that the below error message is saying that I need? 问题:在哪里以及如何找到新的正确RSA密钥,以下错误消息表示我需要?

Error Message (Details disguised): 错误消息(伪装的详细信息):

evan-stites-claytons-macbook-2171:~ estites$ ssh root@EXAMPLE.com evan-stites-claytons-macbook-2171:~estites $ ssh root@EXAMPLE.com
POSSIBLE DNS SPOOFING DETECTED! 检测到可能的DNS搜索!
The RSA host key for EXAMPLE.com has changed, EXAMPLE.com的RSA主机密钥已更改,
and the key for the corresponding IP address XXX.XXX.xxx.xx 以及相应IP地址XXX.XXX.xxx.xx的密钥
is unchanged. 没有改变。 This could either mean that 这可能意味着
DNS SPOOFING is happening or the IP address for the host 正在发生DNS SPOOFING或主机的IP地址
and its host key have changed at the same time. 并且它的主机密钥同时发生了变化。
Offending key for IP in /Users/estites/.ssh/known_hosts:2 在/Users/estites/.ssh/known_hosts:2中攻击IP的密钥
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. RSA主机密钥也可能刚刚更改。
The fingerprint for the RSA key sent by the remote host is 远程主机发送的RSA密钥的指纹是
xx:xx:xx:xx:xx:b5:21:f1:1f:39:xx:xx:xx:xx:xx:xx. XX:XX:XX:XX:XX:B5:21:F1:1F:39:XX:XX:XX:XX:XX:XX。
Please contact your system administrator. 请联系您的系统管理员。
Add correct host key in /Users/estites/.ssh/known_hosts to get rid of this message. 在/Users/estites/.ssh/known_hosts中添加正确的主机密钥以删除此消息。
Offending key in /Users/estites/.ssh/known_hosts:1 /Users/estites/.ssh/known_hosts:1中的攻击密钥
RSA host key for example.com has changed and you have requested strict checking. example.com的RSA主机密钥已更改,您已请求严格检查。
Host key verification failed. 主机密钥验证失败。

You can just delete the line with the old host key in /Users/estites/.ssh/known_hosts . 您可以在/Users/estites/.ssh/known_hosts删除旧主机密钥的/Users/estites/.ssh/known_hosts You'll be prompted to accept the now-unknown host key the first time you try SSHing again. 第一次再次尝试SSH时,系统会提示您接受现在未知的主机密钥。

If you know it's a false alarm, just remove the offending keys from your known_hosts file; 如果您知道这是一个误报,只需从您的known_hosts文件中删除有问题的密钥; according to the error message they're on lines 1 and 2 根据错误消息,他们在第1行和第2行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM