On 4/13/12 7:45 PM, Peter Stuge wrote:
Jasmeet Bagga wrote:
Only one thread does. However I am getting login failures with
error message "Failed getting banner".
You need to provide COMPLETE details of your problem. I suggest
enabling tracing and sending the full log to the list.
The log is attached. I did further debugging and found that ssh via open ssh succeeds, however when I enabled verbose option on it, I see some lines that are interesting
DUKEOSTPDZ01:/var/tmp/jasmeet#ssh -v [email protected]
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 172.17.248.203 [172.17.248.203] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.4 ---> Remote version is 1.99
debug1: match: OpenSSH_4.4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3

This shows that the remote protocol version is 1.99. Does libssh2 work with that ? I would assume no, but the folks using this device claim that it used to work and then suddenly started failing without any change to the device.

Thanks,
Jasmeet


it seems the problem went away after compiling with -D_REENTRANT. I
tried this but it didn't help. Unfortunately I can't access the
associated ticket as libssh2 trac is down.
Try now. http://trac.libssh2.org/ticket/99


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

[libssh2] 0.956528 Conn: Setting blocking mode OFF
[libssh2] 0.956546 Transport: session_startup for socket 13
[libssh2] 0.956554 Transport: Sending Banner: SSH-2.0-libssh2_1.4.1
[libssh2] 0.956561 Socket: Sent 23/23 bytes at 0xbb9345+0
[libssh2] 0.956992 Socket: Recved 0 bytes banner
[libssh2] 0.956996 Failure Event: -43 - Failed getting banner
[libssh2] 0.957045 Transport: Disconnecting: reason=11, desc=, lang=
=> libssh2_transport_write plain (13 bytes)

0000: 01 00 00 00 0B 00 00 00  00 00 00 00 00          : .............

=> libssh2_transport_write plain2 (0 bytes)

[libssh2] 0.957064 Socket: Sent 24/24 bytes at 0x7fcbbda84888
=> libssh2_transport_write send() (24 bytes)

0000: 00 00 00 14 06 01 00 00  00 0B 00 00 00 00 00 00 : ................

0010: 00 00 46 D7 75 92 31 80                          : ..F.u.1.

[libssh2] 0.957074 Transport: Freeing session resource
[libssh2] 0.957076 Transport: Extra packets left 0

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to