Subject: Re: dispatch_protocol_error: type 90 seq 4

Re: dispatch_protocol_error: type 90 seq 4

From: Dave McCaldon <davem_at_intersystems.com>
Date: Wed, 17 Mar 2010 14:46:50 -0400

On Mar 13, 2010, at 4:07 PM, Daniel Stenberg wrote:

> On Thu, 11 Mar 2010, Dave McCaldon wrote:
>
>> I have a Windows client app using libssh2-1.2.3 that seems to be unable to connect to a remote server (OpenSSH 5.2) to do SFTP, it fails on the server side with:
>
> And other tools have no problems using SFTP against this server?

No, putty was able to connect.

>> dispatch_protocol_error: type 90 seq 4
>
>> [libssh2] 44.093943 Transport: Disconnect(7): Service not requested or authenticated(en)
>
>> Does anyone have any more details on what this means? (configuration perhaps?)
>
> That's the error message from the server so I figure more research into what makes the server say so is required to better understand this.

In the putty client log I see this (below) right after KEX done, which is just before the dispatch_protocol error:

debug3: Wrote 52 bytes for a total of 2497
debug1: userauth-request for user USERNAME service ssh-connection method none
debug1: attempt 0 failures 0
...

It then goes on to try to connect using password which seems to succeed.

>> => libssh2_transport_write plain (24 bytes)
>> 0000: 5A 00 00 00 07 73 65 73 73 69 6F 6E 00 00 00 00 : Z....session....
>> 0010: 00 01 00 00 00 00 80 00 : ........
>
> There's the type 90 I believe (0x5A).

Does anyone know what we're sending to the server here?

Thanks!

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-03-17