Archived Forum Post

Index of archived forum posts

Question:

Perl SSH on Windows 2012R2 fails

Nov 14 '15 at 15:34

Not sure if this is supported, but should the Perl SSH module work on Windows 2012R2 using Stawberry Perl 5.22? or do I need to do a one-time accept of a banner etc?

Log from an SSH Test:

C:ProjectsPerl>perl sshTest.pl Unlock ok Connect error: ChilkatLog: Connect_Ssh: DllDate: Oct 17 2015 ChilkatVersion: 9.5.0.53 UnlockPrefix: Anything for 30-day trial Username: WIN-OUGFUJ9NFTD:Administrator Architecture: Little Endian; 64-bit Language: Windows Perl VerboseLogging: 0 hostname: 10.10.80.120 port: 22 sshConnect: Established TCP/IP connection with SSH server clientIdentifier: SSH-2.0-PuTTY_Release_0.63 Sending client identifier... Done sending client identifier. Reading server version... initialDataFromSshServer: SSH-2.0-OpenSSH_5.3

  serverVersion: SSH-2.0-OpenSSH_5.3
  KeyExchangeAlgs:
    algorithm: diffie-hellman-group-exchange-sha256
    algorithm: diffie-hellman-group-exchange-sha1
    algorithm: diffie-hellman-group14-sha1
    algorithm: diffie-hellman-group1-sha1
  --KeyExchangeAlgs
  HostKeyAlgs:
    algorithm: ssh-rsa
    algorithm: ssh-dss
  --HostKeyAlgs
  EncCS:
    algorithm: aes128-ctr
    algorithm: aes192-ctr
    algorithm: aes256-ctr
    algorithm: arcfour256
    algorithm: arcfour128
    algorithm: aes128-cbc
    algorithm: 3des-cbc
    algorithm: blowfish-cbc
    algorithm: cast128-cbc
    algorithm: aes192-cbc
    algorithm: aes256-cbc
    algorithm: arcfour
    algorithm: rijndael-cbc@lysator.liu.se
  --EncCS
  EncSC:
    algorithm: aes128-ctr
    algorithm: aes192-ctr
    algorithm: aes256-ctr
    algorithm: arcfour256
    algorithm: arcfour128
    algorithm: aes128-cbc
    algorithm: 3des-cbc
    algorithm: blowfish-cbc
    algorithm: cast128-cbc
    algorithm: aes192-cbc
    algorithm: aes256-cbc
    algorithm: arcfour
    algorithm: rijndael-cbc@lysator.liu.se
  --EncSC
  MacCS:
    algorithm: hmac-md5
    algorithm: hmac-sha1
    algorithm: umac-64@openssh.com
    algorithm: hmac-sha2-256
    algorithm: hmac-sha2-512
    algorithm: hmac-ripemd160
    algorithm: hmac-ripemd160@openssh.com
    algorithm: hmac-sha1-96
    algorithm: hmac-md5-96
  --MacCS
  MacSC:
    algorithm: hmac-md5
    algorithm: hmac-sha1
    algorithm: umac-64@openssh.com
    algorithm: hmac-sha2-256
    algorithm: hmac-sha2-512
    algorithm: hmac-ripemd160
    algorithm: hmac-ripemd160@openssh.com
    algorithm: hmac-sha1-96
    algorithm: hmac-md5-96
  --MacSC
  CompCS:
    algorithm: none
    algorithm: zlib@openssh.com
  --CompCS
  CompSC:
    algorithm: none
    algorithm: zlib@openssh.com
  --CompSC
  ChosenIncomingEncryption: aes256-ctr
  ChosenOutgoingEncryptoin: aes256-ctr
  ChosenIncomingMac: hmac-sha2-256
  ChosenOutgoingMac: hmac-sha2-256
  ChosenIncomingCompression: zlib@openssh.com
  ChosenOutgoingCompression: zlib@openssh.com
  ChosenKexAlgorithm: diffie-hellman-group-exchange-sha256
  ChosenHostKeyAlgorithm: ssh-dss
  numBits: 256
  pbits: 4096
  Using GEX Group.
  Sending KEX_DH_GEX_REQUEST...
  pbits: 4096
  Received GEX Group.
  dhInitMsgType: 32
  Sent e to server.
  Using SHA256 for Exchange Hash
  DSS host key parsed successfully.
  dsaSigValid: 0
  dss_key: 0000 0007 7373 682D 6473 7300 0000 8100

AEC6 931E 8980 5045 F6C9 51D1 91ED 013E D01B CD6E 9A36 A554 5482 A016 4C9E BFA5 107F 635F B0A6 3813 1EDF C903 E806 D110 C3E8 6514 0A35 2E8F 2254 A8B0 2615 6781 AFBC 5AE9 2D33 060E 20B4 6912 80F4 8C8C E2D1 8797 7248 C772 B637 9C35 A152 15B5 FA92 21A8 8066 86DC F351 6298 A3F6 59F0 7E5A 6387 CE5C CBE5 054E B41B D3EB 5205 0000 0015 00D7 B217 9E0B E74C 525D C107 EF5A E8CE C978 3D11 D300 0000 8039 3EDC F4CE F9AD 8C06 458F F97F 27B8 3869 E82E DAD9 38DE 2681 3DEF 376C 3892 2E1E CCF3 C59B 5C1E F63A 3565 BF56 CF56 AC31 B2EF C0B0 D64C 6B6A 15EE EF37 78AA 9301 1054 B96D F196 9576 F24D 5EAE 841D 679F B9E9 9262 8927 62B7 995F 4329 FFA7 6AA0 6E29 9AC1 E1AA DC30 4DD5 D1EC 86EF 0CCD BC64 F79C 776B E870 CBA3 8B7D 5676 5700 0000 8016 1B92 1F99 932D BA66 8910 41B8 22F0 C747 CBB7 AC06 90A4 063B 341A 64F0 EDCE 288F BDB1 7AFF 8BAF 6C6B EBB0 7833 6B67 70E0 46A9 D2D3 95D9 EA94 B77A FDC0 479B 5467 D981 9B14 2EEF E94E A297 B210 D445 6A5D B162 C5B8 CD96 8B79 AD50 9185 5BA0 C14B A96D DF64 3A74 E70E 0E94 47EE D7B9 C678 1C93 ADB2 6E37 3D23 D207 9527 F50F 09 sigH: 0000 0007 7373 682D 6473 7300 0000 28CD D8E8 2A86 EC04 431E A5C3 56C9 95F0 0CD6 EE2E 805F B5A2 8234 D5B0 ACB7 BE6E BD12 C491 4E52 92FC 18 exchangeHash: A4A8 6A5A 19ED 8D3C 070C E373 2142 B1BC EBED 8639 C8C7 3F14 982E C318 FFD4 0FC9

  DSS signature verification failure. (1)
--sshConnect
Failed.

--Connect_Ssh --ChilkatLog

C:ProjectsPerl>


Answer

See this: http://www.chilkatforum.com/questions/9114/sftp-fails-after-connect-with-dss-signature-verification-failure

The problem was caused by a MinGW gcc compiler bug. Updating to Chilkat v9.5.0.54 will solve the problem.


Answer

Thanks for the very fast reply. I did download the latest Perl x64 file, marked as such:

v9.5.0.54 • 01-Nov-2015 • MD5 Sum: 36fb2d07f6f3b9939dd1a02188bc23e0

I downloaded again a few minutes ago, and re-installed, and still the same:

Install and run is is still saying 9.5.0.53.

C:Tempchilkat-9.5.0-perl-5.22-x86_64-mingw32>perl test.pl Version: 9.5.0.53

C:Tempchilkat-9.5.0-perl-5.22-x86_64-mingw32>perl -version

This is perl 5, version 22, subversion 0 (v5.22.0) built for MSWin32-x64-multi-thread

Today is the first time I have installed this, or Perl - brand new 2012R2 VM today.

I checked the supplied DLL and that has a size of 24.5MB (25,699,613) and a creation date of October 19th 2015.

Would it possible to check the 5.22 9.5.0.54 x64 installer?

Thanks,

Keith


Answer

Installed latest Strawberry Perl 5.22 on a windows 32 VM, downloaded

v9.5.0.54 • 01-Nov-2015 • MD5 Sum: 9e697f72fd5c1d0b251f95b87d2b2e1f Perl 5.22 32-bit

Run tests. Also saying 9.5.0.53 - so id this the .53 version?

Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:Windowssystem32>cd temp

C:Temp>cd chilkat-9.5.0-perl-5.22-x86-mingw32

C:Tempchilkat-9.5.0-perl-5.22-x86-mingw32>dmake install Installing C:Perlperlsitelibchilkat.dll Installing C:Perlperlsitelibchilkat.pm Appending installation info to C:Perlperllib/perllocal.pod

C:Tempchilkat-9.5.0-perl-5.22-x86-mingw32>perl test.pl Version: 9.5.0.53


Answer

Used the ppm install method and now showing 9.5.0.54.

C:Tempchilkat-9.5.0-perl-5.22-x86_64-mingw32>ppm install http://www.chilkatsoft.com/download/chilkatPerl.ppd Installing package 'http://www.chilkatsoft.com/download/chilkatPerl.ppd'... Bytes transferred: 7017694 Use of chdir('') or chdir(undef) as chdir() is deprecated at C:/StrawberryPerl/perl/vendor/lib/PPM.pm line 393. Installing C:STRAWB~1perlsitelibchilkat.dll

C:Tempchilkat-9.5.0-perl-5.22-x86_64-mingw32>perl test.pl Version: 9.5.0.54


Answer

Thanks. The "chdir" error message/warning is harmless. I updated the .zip download (http://www.chilkatsoft.com/download/9.5.0.54/chilkat-9.5.0-perl-5.22-x86_64-mingw32.zip) and it should indicate 9.5.0.54 now..

I'll check the other .zip downloads..