Subject: | Module Net::SSH2 in Strawberry v5.24.0.1 seems have bugs. |
Date: | Sun, 17 Jul 2016 21:12:17 -0700 |
To: | "bug-Perl-Dist-Strawberry [...] rt.cpan.org" <bug-Perl-Dist-Strawberry [...] rt.cpan.org> |
From: | Peng Jiang <pjiang6 [...] telus.net> |
Module Net::SSH2 in Strawberry v5.24.0.1 seems have bugs. It fails in key exchange with Cisco routers, Strawberry v5.22. 2.1 does not have the issue. attached debug output from the Cisco router during the testing with both versions below.
Successful logon to Cisco router with Strawberry v5.22.2.1:
040306: Jul 18 02:41:35.687: SSH1: starting SSH control process
040307: Jul 18 02:41:35.687: SSH1: sent protocol version id SSH-2.0-Cisco-1.25
040308: Jul 18 02:41:35.731: SSH1: protocol version id is - SSH-2.0-libssh2_1.4.3
040309: Jul 18 02:41:35.731: SSH2 1: SSH2_MSG_KEXINIT sent
040310: Jul 18 02:41:36.327: SSH2 1: SSH2_MSG_KEXINIT received
040311: Jul 18 02:41:36.327: SSH2:kex: client->server enc:aes256-cbc mac:hmac-sha1
040312: Jul 18 02:41:36.327: SSH2:kex: server->client enc:aes256-cbc mac:hmac-sha1
040313: Jul 18 02:41:36.519: SSH2 1: expecting SSH2_MSG_KEXDH_INIT
040314: Jul 18 02:41:36.535: SSH2 1: SSH2_MSG_KEXDH_INIT received
040315: Jul 18 02:41:36.867: SSH2: kex_derive_keys complete ⇐============
040316: Jul 18 02:41:36.867: SSH2 1: SSH2_MSG_NEWKEYS sent
040317: Jul 18 02:41:36.867: SSH2 1: waiting for SSH2_MSG_NEWKEYS
040318: Jul 18 02:41:36.883: SSH2 1: SSH2_MSG_NEWKEYS received
040319: Jul 18 02:41:37.087: AAA/BIND(00000041): Bind i/f
040320: Jul 18 02:41:37.087: AAA/AUTHEN/LOGIN (00000041): Pick method list 'default'
040321: Jul 18 02:41:37.091: SSH2 1: authentication successful for testuser
040322: Jul 18 02:41:37.095: SSH2 1: channel open request
040323: Jul 18 02:41:37.099: SSH2 1: exec request
040324: Jul 18 02:41:37.099: SSH2 1: exec message received
040325: Jul 18 02:41:37.103: SSH2 1: starting shell for vty
040326: Jul 18 02:41:37.311: SSH1: Session terminated normally
Failed login to Cisco router with Strawberry v5.24.0.1:
040018: Jul 17 22:07:26.941: SSH0: starting SSH control process
040019: Jul 17 22:07:26.941: SSH0: sent protocol version id SSH-2.0-Cisco-1.25
040020: Jul 17 22:07:26.977: SSH0: protocol version id is - SSH-2.0-libssh2_1.7.0
040021: Jul 17 22:07:26.977: SSH2 0: SSH2_MSG_KEXINIT sent
040022: Jul 17 22:07:27.901: SSH2 0: SSH2_MSG_KEXINIT received
040023: Jul 17 22:07:27.901: SSH2:kex: client->server enc:aes256-cbc mac:hmac-sha1
040024: Jul 17 22:07:27.905: SSH2:kex: server->client enc:aes256-cbc mac:hmac-sha1
040025: Jul 17 22:07:28.105: SSH2 0: SSH2_MSG_KEX_DH_GEX_REQUEST received
040026: Jul 17 22:07:28.105: SSH2 0: Range sent by client is - 1024 < 1536 < 2048
040027: Jul 17 22:07:28.105: SSH2 0: Invalid modulus length <================
040028: Jul 17 22:07:28.205: SSH0: Session disconnected - error 0x00 <====================
Regards,
Peng Jiang
Sent from Mail for Windows 10