Subject: [libssh2] #167: Unable to init SFTP session vs SSH-2.0-SSHD

[libssh2] #167: Unable to init SFTP session vs SSH-2.0-SSHD

From: libssh2 Trac <>
Date: Wed, 24 Mar 2010 17:25:04 -0000

#167: Unable to init SFTP session vs SSH-2.0-SSHD
 Reporter: ptjm | Owner:
     Type: defect | Status: new
 Priority: normal | Milestone:
Component: SFTP | Version: 1.2.5
 Keywords: | Blocking:
Blockedby: |
 I found that libssh2 is able to authenticate versus one particular sftp
 server, but that it fails to initiate the sftp session.

 The attached file sftpfailure.log shows the trace of sftpdir vs a server
 which returns the banner "SSH-2.0-SSHD". The trace was run using version
 1.2.5-20100317. There were no modifications to the library but sftpdir.c
 was modified to use public key authentication and to call

  libssh2_trace(session, LIBSSH2_TRACE_TRANS | LIBSSH2_TRACE_KEX |

 The only other thing I can think to add is that the machine I'm connecting
 from is rather old & the openssl version is 0.9.7d. I am able to connect
 from this machine and perform sftp transfers using openssh, though.

 I know nothing about the server machine.

Ticket URL: <>
libssh2 <>
C library for writing portable SSH2 clients
Received on 2010-03-24