Subject: Re: bad client public DH value

Re: bad client public DH value

From: Barry Fawthrop <barryf_at_ttienterprises.org>
Date: Wed, 23 May 2012 07:48:35 -0400

Solve it
session_ex
Needed a RAND_seed()

On May 22, 2012, at 1:48 PM, Barry Fawthrop wrote:

> Hi All
>
> Trying to create an SSH client using the LibSSH2-1.4.1 code
> I'm getting a failure
>
> The Server has
> ============
> debug2: kex_parse_kexinit:
> debug2: kex_parse_kexinit:
> debug2: kex_parse_kexinit: first_kex_follows 0
> debug2: kex_parse_kexinit: reserved 0
> debug2: kex_parse_kexinit: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
> debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
> debug2: kex_parse_kexinit: aes256-cbc,aes192-cbc,aes128-cbc,rijndael-cbc_at_lysator.liu.se,arcfour128,arcfour,blowfish-cbc,cast128-cbc,3des-cbc,aes256-ctr,aes192-ctr,aes128-ctr
> debug2: kex_parse_kexinit: aes256-cbc,aes192-cbc,aes128-cbc,rijndael-cbc_at_lysator.liu.se,arcfour128,arcfour,blowfish-cbc,cast128-cbc,3des-cbc,aes256-ctr,aes192-ctr,aes128-ctr
> debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160_at_openssh.com
> debug2: kex_parse_kexinit: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160_at_openssh.com
> debug2: kex_parse_kexinit: none
> debug2: kex_parse_kexinit: none
> debug2: kex_parse_kexinit:
> debug2: kex_parse_kexinit:
> debug2: kex_parse_kexinit: first_kex_follows 0
> debug2: kex_parse_kexinit: reserved 0
> debug2: mac_setup: found hmac-sha1
> debug1: kex: client->server aes256-cbc hmac-sha1 none
> debug2: mac_setup: found hmac-sha1
> debug1: kex: server->client aes256-cbc hmac-sha1 none
> debug2: dh_gen_key: priv key bits set: 269/512
> debug2: bits set: 1047/2048
> debug1: expecting SSH2_MSG_KEXDH_INIT
> invalid public DH value: <= 1
> Disconnecting: bad client public DH value
>
>
>
> The Client Side has
> ================
> :: [libssh2] 0.410000 Key Ex: Initiating Diffie-Hellman Group14 Key Exchange
> :: [libssh2] 0.410000 Key Ex: Sending KEX packet 30
> :: [libssh2] 0.410000 Socket: Sent 16/16 bytes at 0x61eef18
> :: [libssh2] 0.410000 Transport: Looking for packet of type: 31
> :: [libssh2] 0.434000 Socket: Recved 48/16384 bytes to 0x61eaef0+0
> :: [libssh2] 0.434000 Transport: Packet type 1 received, length=39
> :: [libssh2] 0.434000 Transport: Disconnect(2): (null)((null))
> :: [libssh2] 0.434000 Failure Event: -13 - socket disconnect
> :: [libssh2] 0.434000 Failure Event: -9 - Timed out waiting for KEX reply
> :: [libssh2] 0.434000 Failure Event: -8 - Unrecoverable error exchanging keys
> :: [libssh2] 0.434000 Failure Event: -8 - Unable to exchange encryption keys
>
>
> Any Help ! !
> What could be causing the problem ?
>
>
> Thanks in advance
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-05-23