h3c 更新ssh client key

2023-01-31 02:01:16 ssh 更新 H3C

<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

相关文章