登录思科交换机时出现此错误

登录思科交换机时出现此错误

在思科交换机中启用 ssh 后出现此错误。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
a6:90:00:e1:b2:05:75:ce:48:ed:15:10:bd:51:90:a2.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:5
RSA host key for 172.10.77.126 has changed and you have requested strict checking.
Host key verification failed.

我如何从 Linux 机器访问交换机。似乎我需要将公钥从思科交换机复制到,/root/.ssh/known_host但我可以从哪里获取思科路由器中的公钥

答案1

尝试删除 /root/.ssh/known_hosts 中的第 5 行!

编辑:还请考虑@FrankThomas 在你的问题评论中所说的话

相关内容