我尝试使用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.
答案 0 :(得分:1)
感谢Anil Vishnoi的评论!
删除
/Users/xxx/.ssh/known_hosts
并通过传递pem键
使用我的原始命令ssh -l ubuntu -i ~/.ssh/xxx.pem xxx.edu -p 18922
我可以直接ssh到Openstack服务器。