gpt4 book ai didi

linux - 通过 SSH 连接到 Openstack 实例 - 错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:03:32 25 4
gpt4 key购买 nike

我尝试使用 ssh 登录为类(class)构建的 Openstack 服务器。我从服务器下载 .pem key 。通过 putty,我使用 .ppk key 成功登录(使用 putty keygen 通过 .pem 生成 .ppk key )。但它不适用于 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.

最佳答案

感谢 Anil Vishnoi 的评论!

删除

/Users/xxx/.ssh/known_hosts

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

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

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

关于linux - 通过 SSH 连接到 Openstack 实例 - 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16669464/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com