The server’s host key does not match the local cached key.

客户端保存的服务器公钥与实际的服务器公钥不一致

客户端登录服务器时,提示如下信息:

<Client> ssh2 192.168.40.182

Username: test

Trying 192.168.40.182 …

Press CTRL+K to abort

Connected to 192.168.40.182 …

 

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.

 

这是由于192.168.40.182的key已经变化,和交换机保存的key不一致导致。

删除本地的cacche key 即可

<Client> display public-key peer  //查看本地cache key

[Client] undo public-key peer  //删除本地cache key

 

 

参考资料:

SSH故障处理手册

 

 

 

Kim C. Jin

Kim C. Jin

Hello, my name is Kim, from Shuren University. I can speak English, Chinese of course, and Japanese. 私は 超超 と申します、25歳の会社員 です。趣味は運転することと山登りです。一番好きな言葉は一期一会。よろしくお願いします。

您可能还喜欢...

发表评论

电子邮件地址不会被公开。