【问题标题】:No matching mac found: client hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-256 server hmac-sha1未找到匹配的 mac:客户端 hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-256 服务器 hmac-sha1
【发布时间】:2019-02-21 01:20:05
【问题描述】:

我在运行脚本时遇到错误,我在 AIX 上

Reading configuration data /ecmsq1vg1/home1/aradmin/.ssh/config
Reading configuration data /etc/ssh_config
Connecting to www.mftcatapp.firstdataclients.com, port 22.
Remote version string: SSH-2.0-Sun_SSH_1.1.8
Remote protocol version 2.0, remote software version Sun_SSH_1.1.8
Net::SSH::Perl Version 2.14, protocol version 2.0.
No compat match: Sun_SSH_1.1.8.
Connection established.
Sent key-exchange init (KEXINIT), waiting for response.
No matching mac found: client hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512,hmac-sha2-256 server hmac-sha1 at /apps/perl/lib/site_perl/5.18.1/aix-thread-multi/Net/SSH/Perl/SSH2.pm line 273

谁能帮我解释一下为什么我会遇到上述错误?

【问题讨论】:

    标签: perl ssh


    【解决方案1】:

    perldoc Net::SSH::Perl:

    完整性检查由hmac-sha2-256hmac-sha2-512hmac-sha2-256-etm@openssh.comhmac-sha2-512-etm@openssh.com 算法执行。已弃用的 hmac-sha1hmac-md5 算法可用,但默认情况下未启用。许多较旧的 SSH 服务器安装仍然使用 hmac-sha1 作为主要接受的 MAC 算法。要启用此功能,请使用以下选项参数:

    options => [ "MACs +hmac-sha1" ]
    

    因此,要么将您的服务器配置为不使用hmac-sha1 进行完整性检查,要么告诉您的脚本接受hmac-sha1

    【讨论】:

    • 所以要么配置你的服务器不使用 hmac-sha1 进行完整性检查,要么告诉你的脚本接受 hmac-sha1 怎么样?
    • @RijuMukherjee 对于服务器:不知道,我从未使用过 Sun SSH。检查它的手册?至于脚本:我引用的代码 sn-p 有什么不清楚的地方?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-07-05
    • 2016-11-23
    • 2021-07-26
    • 1970-01-01
    • 1970-01-01
    • 2016-04-29
    • 2012-07-07
    相关资源
    最近更新 更多