引擎堆中的SSH

Red*_*ber 1 ssh ruby-on-rails engineyard

我在安永的rails部署上遇到了一些大问题.支持说我需要SSH来清除错误......但我得到以下内容:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
80:4c:5f:dd:98:bb:cb:01:6c:a9:11:41:29:56:66:86.
Please contact your system administrator.
Add correct host key in /Users/jameshughes/.ssh/known_hosts to get rid of this message.
Offending key in /Users/jameshughes/.ssh/known_hosts:1
RSA host key for ec2-184-73-167-153.compute-1.amazonaws.com has changed and you have requested strict checking.
Host key verification failed.

[Process completed]
Run Code Online (Sandbox Code Playgroud)

如何将正确的密钥添加到Known_hosts文件中?

jes*_*iss 11

known_hosts在您喜欢的文本编辑器中打开,找到"ec2-184-73-167-153.compute-1.amazonaws.com"条目并删除整行.下次ssh时,它会将正确的密钥添加到known_hosts文件中.

请注意,此错误是出于安全目的,因此我假设您知道没有"中间人"攻击并且服务器密钥实际已发生更改.如果没有,可能会有其他事情发生.