报错内容:
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
看看天上,于是我去了满是风雪的地方