报错内容:

The server's host key does not match the local cached key. Either the server administrator has changed the host key, or you connected to another server pretending to be this server. Please remove the local cached key, before logging in!

Connection closed.

报错分析:

这个问题是由于客户端保存的服务器公钥和服务器的实际公钥不一致,导致客户端认证服务器身份失败。

问题处理:

1.通过下述方法查看客户端保存的服务器公钥

<CN-SXLQ-8-1F101-OFFICE-AGG208.81>dis ssh client server-public-key 
 Server address: 10.3.248.179
 Key type: rsa
 Key length: 1024
 Key code:
   AAAAB3NzaC1yc2EAAAADAQABAAAAgQDJB955mzPoyARZjvTfPft8463A8zQVX9Pb
   phg/frMuKHkxQGWcpwU6mSrWiYd+uanGDsi0yB1Wcfo/5xrLIUUKTI0L9yeFetwk
   3fyZZQL0/EC3Gx/q3W2rm3pYTCTgwdWycaZ2IYpY+DBu/Dc7TDSEyHog+1SkslK6
   dCjff46ZSQ==

2.通过下述方法删除设备上保存的相应公钥

delete ssh client server-public-key server-ip 10.3.248.179

 

posted on 2023-08-07 17:36  星痕1216  阅读(961)  评论(0编辑  收藏  举报