ssh登录报no matching MAC found. Their offer: hmac-sha2-512异常

故障现象:

ssh 111.111.111.111
Unable to negotiate with 111.111.111.111 port 22: no matching MAC found. Their offer: hmac-sha2-512,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha2-256-etm@openssh.com

临时解决方法

ssh 111.111.111.111 -o macs=hmac-sha2-512

问题点:

 sudo   sshd -T|grep -i macs
 MACs hmac-sha2-512,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha2-256-etm@openssh.com,hmac-sha1
 此项源与目标一致即可。

源与目标
/etc/ssh/sshd_config
配置文件macs项一致,重启服务。

源环境

 rpm -qa |grep ssh
openssh-keycat-8.8p1-1.el7.bclinux.x86_64
pam_ssh_agent_auth-0.10.3-2.1.el7.bclinux.x86_64
openssh-clients-8.8p1-1.el7.bclinux.x86_64
libssh2-1.4.3-10.el7_2.1.x86_64
openssh-askpass-8.8p1-1.el7.bclinux.x86_64
openssh-8.8p1-1.el7.bclinux.x86_64
openssh-server-sysvinit-8.8p1-1.el7.bclinux.x86_64
openssh-ldap-8.8p1-1.el7.bclinux.x86_64
openssh-debuginfo-8.6p1-2.el7.bclinux.x86_64
openssh-server-8.8p1-1.el7.bclinux.x86_64

目标环境

rpm -qa |grep ssh
openssh-clients-8.8p1-1.el7.centos.x86_64
libssh2-1.8.0-4.el7.x86_64
openssh-askpass-gnome-8.8p1-1.el7.centos.x86_64
openssh-server-8.8p1-1.el7.centos.x86_64
openssh-debuginfo-8.8p1-1.el7.centos.x86_64
openssh-8.8p1-1.el7.centos.x86_64
openssh-askpass-8.8p1-1.el7.centos.x86_64
  • 5
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值