[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Failing to connect to an openSSH server


Hi Aris,

Thanks for the fast response. 
I'm happy to report that the problem is solved. There was a linking problem
in our application. An oracle database library was linked in before libssh.
This caused the generation of the invalid value.
Reversal of the linking order fixed the problem !!

Thanx again,

Jeroen Pot

-----Original Message-----
From: Aris Adamantiadis [mailto:aris@xxxxxxxxxxxx] 
Sent: donderdag 8 september 2011 12:56
To: libssh@xxxxxxxxxx
Subject: Re: Failing to connect to an openSSH server

Hi Jeroen,

Thanks for your report (and the precious log!).
Does this problem happen everytime you connect ? Does it happens on all
servers or only this one ?
I can see it's OpenSSH 4.3. Is it a custom compile ? On which distro does
the server run ?

I see from your log that you're using threads_pthread. Is your client tool
multithreaded ?
There seems to be a problem with the generation or the sending of the
diffie-hellman bignum. This can come from a non-handled error somewhere (we
do not detect our invalid DH parameter) and has a source (maybe a problem
with the initialization of openssl/libgcrypt).

Could you provide me a copy of your libssh-0.5.0/build/CMakeCache.txt file
and tell me more about your build environment ? (distribution, maybe a few
lines of code, especially initialization of libssh).

Thanks,

Aris

Le 8/09/11 11:09, Jeroen Pot a écrit :
> Hi All,
> 
>  
> 
> When I try to connect to an openSSH server I get the following error:
> 
> Error : Received SSH_MSG_DISCONNECT: 33554432:bad client public DH 
> value (Full logging attached)
> 
>  
> 
> It seems that the server forces a disconnect.
> 
> The sshd reports:
> 
> /invalid public DH value (1/1024)/
> 
> /Disconnecting: bad client public DH value /
> 
>  
> 
> Question is: What causes this  disconnect and how can I fix this?
> 
> When I connect using the openSSH ssh client I have no problems.
> 
> Any help with this problem is very  much appreciated.
> 
>  
> 
> Regards,
> 
>  
> 
>  
> 
> Jeroen Pot
> 
> /Senior Software Engineer/
> 
>  
> 
> o n e2 m a n y
> 
> Leeuwenbrug 115
> 
> 7411 TH Deventer
> 
> The Netherlands
> 
>  
> 
> T:+31 (0)88 00 349 00
> 
> F: +31 (0)88 00 349 01
> 
>  
> 
> www.one2many.eu
> 
>  
> 
> Description: cid:image001.jpg@01CC5030.699163D0
> 
>  
> 


References:
Failing to connect to an openSSH server"Jeroen Pot" <jeroen.pot@xxxxxxxxxxx>
Re: Failing to connect to an openSSH serverAris Adamantiadis <aris@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org