从H3C交换机SSH登录其他设备报错: The server‘s host key does not match the local cached key.

现场1台H3C 6530交换机

从这台交换机上SSH登录1台思科设备时,报错如下:

<H3C-SWITCH>  ssh 10.248.1.250
Username: admin1
Press CTRL+C to abort.
Connecting to 10.248.1.250 port 22.
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! 

查询得知是H3C上缓存的key变化导致了
需要清理掉对应Ip的key

命令:

[H3C-SWITCH]delete ssh client server-public-key server-ip 10.248.1.250

清理完成后,再次登录正常

<H3C-SWITCH>ssh 10.248.1.250
Username: admin1
Press CTRL+C to abort.
Connecting to 10.248.1.250 port 22.
The server is not authenticated. Continue? [Y/N]:y
Do you want to save the server public key? [Y/N]:Y   //这一步可以输入N,这样的话H3C就不保存key
Enter a character ~ and a dot to abort.

(Cisco Controller) 
User: admin
Password:********
(Cisco Controller) >
(Cisco Controller) >
(Cisco Controller) >
```bash

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值