1

我尝试使用 ssh 登录为该课程构建的 Openstack 服务器。我从服务器下载 .pem 密钥。通过 putty,我使用 .ppk 密钥成功登录(使用 putty keygen 通过 .pem 生成 .ppk 密钥)。但它不适用于 ssh。有什么我错过的吗?

我的命令

ssh -l ubuntu -i ~/.ssh/xxx.pem xxx.edu -p 18922

错误信息

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
(xxx).
Please contact your system administrator.
Add correct host key in /Users/xxx/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/xxx/.ssh/known_hosts:2
RSA host key for [xxx.edu]:18922 has changed and you have requested strict checking.
Host key verification failed.
4

1 回答 1

1

感谢 Anil Vishnoi 的评论!

消除

/Users/xxx/.ssh/known_hosts

并通过传递 pem 键使用我的原始命令

ssh -l ubuntu -i ~/.ssh/xxx.pem xxx.edu -p 18922

我可以直接 ssh 到 Openstack 服务器。

于 2013-05-23T09:10:15.427 回答