华为交换机SSH算法不匹配的问题

华为交换机配置完SSH后使用Putty    CRT 登录出现以下错误

SSH/7/MATCH_MAC:No matching MAC algorithm (client=hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,umac-64@openssh.com, server=hmac-sha2-256)!

或者提示:

Key exchange failed.

No compatible hostkey. The server supports these methods: rsa-sha2-512,rsa-sha2-256

使用MobaXterm可以弹出输入用户名密码,但是输入完用户名之后需要很长一段时间才会让输入密码,输入完密码马上就会显示断开,在交换机上的日志提示登录超时。

这个问题是因为算法不匹配导致的,如果你的版本(V200R021C10SPC600 R21以上才会内置weakea,否则需要手工下载的)和我一样或更高可以换以下来操作:

注意示图及mod的名称,mod名称是在执行load-module weakea时显示的名称,所以不同版本应该是不一样的。

<HLW-HX-SW>load-module weakea

Info: Load weakea_V200R021C10SPC600.mod from the startup system software to $_install_mod/weakea_V200R021C10SPC600.mod. You can run the install-module weakea_V200R021C10SPC600.mod command to install it.

<HLW-HX-SW>install-module weakea_V200R021C10SPC600.mod

Info: Installing the module flash:/$_install_mod/weakea_v200r021c10spc600.mod....Info: Succeeded in installing the module on the master board.......

[HLW-HX-SW]undo ssh server cipher

[HLW-HX-SW]undo ssh server key-exchange

[HLW-HX-SW]undo ssh server hmac

[HLW-HX-SW]undo ssh server publickey

操作完成之后就可以正常使用ssh登录了。
 

虽然不知道什么原理,能解决问题就好

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值