簡體   English   中英

SSH進入Openstack實例-錯誤

[英]SSH into an Openstack instance - Error

我嘗試使用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.

感謝Anil Vishnoi的評論!

去掉

/Users/xxx/.ssh/known_hosts

並通過傳遞pem鍵使用我的原始命令

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

我可以直接SSH到Openstack服務器。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM