cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Why curleasy do nothing for SFTP

From: Guenter Knauf <eflash_at_gmx.net>
Date: Tue, 21 Aug 2007 03:33:48 +0200

Hi,
> On Mon, 20 Aug 2007, Mathew Simon wrote:

>>> I'll try to do some real-world libcurl tests with sftp soon.
>>
>> The sshd server I am using to test with is Openssh 4.2, and it is on
>> Linux (Fedora Core-4).

> I just tried against openssh 4.6p1 on debian, both against localhost and
> against a remote server (10 hops, ~33 ms ping) and both seemed to work on
> multiple tests...

> I used curl and libssh2 current CVS on a Debian Linux (unstable).

well, I did just a MingW32 build with libssh2 0.17, and it didnt work with my NetWare server:

curl 7.17.0-CVS (i386-pc-win32) libcurl/7.17.0-CVS OpenSSL/0.9.8e zlib/1.2.3 libssh2/0.17
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: Largefile NTLM SSL libz
* About to connect() to 192.168.0.111 port 22 (#0)
* Trying 192.168.0.111... connected
* Connected to 192.168.0.111 (192.168.0.111) port 22 (#0)
* Closing connection #0
* Error in the SSH layer
curl: (79) Error in the SSH layer

while this one works against same box
(see also different output although I dont use certs but user/pass):
curl 7.16.4 (i386-pc-win32) libcurl/7.16.4 OpenSSL/0.9.8e zlib/1.2.3 libssh2/0.15-CVS
Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
Features: Largefile NTLM SSL SSPI libz
* Trying 192.168.0.111... connected
* Connected to 192.168.0.111 (192.168.0.111) port 22 (#0)
* SSH authentication methods available: publickey,password,keyboard-interactive
* Using ssh public key file
* Using ssh private key file
* Initialized password authentication
* Authentication complete
drwxrwxrwx 1 16777216 0 0 Aug 20 8:47 .
drwxrwxrwx 1 16777216 0 0 Aug 20 8:47 NW65SRV2
* Closing connection #0

> This of course makes debugging of this problem a bit more tricky! :-(
I still think that this commit might be related;
it was only a suggestion what we might need here to get it compiled again, and this code wasnt carefully enough checked (since I'm not the Win32 Guru):
http://libssh2.cvs.sourceforge.net/libssh2/libssh2/src/session.c?r1=1.46&r2=1.47

Guen.
Received on 2007-08-21