找不到匹配的Mac:客户端hmac-sha2-512-etm @ openssh.com,hmac-sha2-256-etm @ openssh.com,hmac-sha2-512,hmac-sha2-256服务器hmac-sha1

时间:2018-09-17 06:55:52

标签: perl ssh

我在运行脚本时遇到错误,我在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

有人可以帮我解决为什么我遇到上述错误吗?

1 个答案:

答案 0 :(得分:0)

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