报错信息:
<SW>ssh2 192.168.XX.35
Username: netadmin Press CTRL+C to abort. Connecting to 192.168.XX.35 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 Comware Software, Version 7.1.070, Release 1312 Copyright (c) 2004-2019 New H3C Technologies Co., Ltd. All rights reserved. H3C S5560-34C-EI uptime is 0 weeks, 0 days, 14 hours, 35 minutes Last reboot reason : Cold reboot Boot image: flash:/s5560ei-cmw710-boot-r1312.bin Boot image version: 7.1.070, Release 1312 Compiled Nov 19 2019 11:00:00 System image: flash:/s5560ei-cmw710-system-r1312.bin System image version: 7.1.070, Release 1312 Compiled Nov 19 2019 11:00:00
(0)
提示和ssh服务器的秘钥不匹配,可以尝试 如下
1.1.1 delete ssh client server-public-key
delete ssh client server-public-key命令用来删除SSH客户端公钥文件中的服务器公钥信息。
【命令】
delete ssh client server-public-key [ server-ip ip-address ]
【视图】
系统视图
【缺省用户角色】
network-admin
mdc-admin
【参数】
server-ip ip-address:删除指定IP地址的服务器的公钥信息。不指定本参数时,删除公钥文件中所有服务器公钥信息。
【举例】
# 删除所有SSH客户端保存在公钥文件的服务器公钥。
<Sysname> system-view
[Sysname] delete ssh client server-public-key
Public keys of all SSH servers will be deleted. Continue? [Y/N]:y
# 删除SSH客户端保存的服务器2.2.2.1的公钥。
<Sysname> system-view
[Sysname] delete ssh client server-public-key server-ip 2.2.2.1
(1)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论