评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
Linux主机通过SSH远程登录存储BMC系统,因公钥失效无法访问时,如何更新公钥?
问题
使用Linux主机或其它存储系统通过SSH远程登录待上电存储的BMC系统时,如果提示“ESDSA host key”因失效无法登录,如何更新公钥?
回答
- 通过回显信息查看保存公钥的文件路径。如本示例中保存公钥的文件路径为“/xxx/.ssh/known_hosts”。
host:~ # ssh admin@xxx.xxx.xxx.xxx @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 ECDSA key sent by the remote host is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx [MD5]. Please contact your system administrator. Add correct host key in /xxx/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /xxx/.ssh/known_hosts:3 ECDSA host key for xxx.xxx.xxx.xxx has changed and you have requested strict checking. Host key verification failed.
- 编辑“know_hosts”文件,删除无法登录的存储系统IP地址和公钥。
下次通过SSH远程登录该存储时,“know_hosts”文件会生成新的公钥。
- 重新通过SSH远程登录存储系统。