cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Q. about LibCurl and SCP

From: Roger Tremblay <hollowman314159_at_yahoo.ca>
Date: Tue, 14 Feb 2012 12:13:35 -0800 (PST)

--- On Fri, 2/10/12, Daniel Stenberg <daniel_at_haxx.se> wrote:

> From: Daniel Stenberg <daniel_at_haxx.se>
> Subject: Re: Q. about LibCurl and SCP
> To: "libcurl development" <curl-library_at_cool.haxx.se>
> Received: Friday, February 10, 2012, 5:13 PM
> On Fri, 10 Feb 2012, Roger Tremblay
> wrote:
>
> > I have tried LibCurl on FTP, FTPS, SFTP. It worked all
> fine. But it failed with SCP everytime with every SCP server
> I've tried (CrushFTP5_PC.zip, SFTP-SCP-Server.msi,
> PowerShellServer.exe, Fortress_x86.exe, install_JSCAPE MFT
> Server.exe, WinSSHD4-Inst.exe, CompleteFTPSetup.exe).
>
> I notice how all of them are Windows servers...
>
> What libcurl and libssh2 versions are you using?

we use libssh2-1.3.0 (www.libssh2.org)
and curl-7.21.0

> > I though maybe I had not used the lib correctly. So I
> tried all these SCP servers again with the Curl utility
> (which must be doing the proper LibCurl calls for a
> successful
>
> > Notice there is something wierd with the url submited
> by LibCurl! The SCP command submitted by LibCurl is: exec
> 'scp -t
> '/6BD823E5-8C52-4B82-8780-0C709898C56D-2361-OF.tiff'
> >
> >
> ???????????????????????????????????????????????????????????????????????????????????????????????????
> '
> >
> > What's with all these '?' characters?
>
> I've never seen anything like it. But they're _after_ the
> closing quote of the scp command so are you sure that's even
> related to what is sent by curl/libssh2 ?
>
> > To reproduce this, install CompleteFTP, set it up to
> enable SCP. Build the Curl utility and run the following
> command
>
> Sorry, I can't as I don't run Windows.
>
> I would suggest that you switch over to using plain libssh2
> first to track down the SCP problem. If you build and run a
> simple scp transfer example directly using libssh2, will
> that work or not? If not, the problem is in that library and
> we should persue the debugging there (on the libssh2 mailing
> list).
>
> Please make sure that you use recent versions of both
> libcurl and libssh2 to take advantage of the latest bug
> fixes and improvements.

Thx for the advices. Will do.

>
> --
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette:  http://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-14