String too long when connecting to SunOS ssh daemon

Matt Johnston matt at ucc.asn.au
Mon Sep 15 23:10:49 WST 2014


Hi Hans,

I think that should be OK to increase, you might need to
raise MAX_PROPOSED_ALGO too. Which version of SunOS is it,
can you send me the output of "dbclient -v" or OpenSSH "ssh -vvv"
to that server? I guess it has lots of kerberos key exchange
methods or something. It doesn't really make sense to have a
fixed limit (there's already the packet size limit), I'll
put that on the todo list for the next release.

Cheers,
Matt

On Mon, Sep 15, 2014 at 04:21:22PM +0200, Hans Harder wrote:
> I am getting a 'String too long' error whenever I try to connect to a SunOS
> server with dbclient
> 
> In order to find out how much it is to long, I adapted 1 line in buffer.c
> Now I get the message:"exited:  String too long (2056 > 1400)"
> 
> That is a lot larger than 1400...
> Any concerns before I increase the MAX_STRING_LEN to 2100 ?
> 
> Hans
> 
> 
> 
> --- a/buffer.c  2014-08-08 07:40:46.000000000 -0600
> +++ b/buffer.c  2014-09-15 08:02:44.000000000 -0600
> @@ -209,7 +209,7 @@ unsigned char* buf_getstring(buffer* buf
>         unsigned char* ret;
>         len = buf_getint(buf);
>         if (len > MAX_STRING_LEN) {
> -               dropbear_exit("String too long");
> +               dropbear_exit("String too long (%d >
> %d)",len,MAX_STRING_LEN);
>         }
> 
>         if (retlen != NULL) {


More information about the Dropbear mailing list