[olug] sftp using cURL

Dave Rowe dave at roweware.com
Mon May 11 14:38:53 UTC 2009


Did you install just the libraries?

You probably need to install the development package - libssh2-1-dev

Dave

DYNATRON tech wrote:
> okay...another wall...both machines (8.04 and 9.04) same result
> 
> apt-get install libssh2-1 (to get the necessary libraries)
> 
> i got the cURL source code, ran the configure script....
> 
> checking for libssh2_channel_open_ex in -lssh2... no
> checking libssh2.h usability... no
> checking libssh2.h presence... no
> checking for libssh2.h... no
> configure: error: libSSH2 libs and/or directories were not found where
> specified!
> 
> any suggestions?
> 
> 
> 
> On Mon, May 11, 2009 at 8:57 AM, DYNATRON tech <dynatron at gmail.com> wrote:
> 
>> okay.....
>>
>> when curl/libcurl is compiled, the .configure script searches for a library
>> (libssh2). if that library is not implemented on the machine during compile,
>> you will not get sftp functionality.
>>
>> what i think i need to do:
>>
>> install libssh2
>> uninstall curl.
>> compile and install curl.
>>
>>
>>
>>
>> On Mon, May 11, 2009 at 8:39 AM, DYNATRON tech <dynatron at gmail.com> wrote:
>>
>>> for some reason, curl -V now (3 days later) reports the supported
>>> protocols on my laptop. don't ask me why it didn't before, but now it
>>> does....
>>>
>>> administrator at bunt:~$ curl -V
>>> curl 7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/
>>> 1.2.3.3 libidn/1.1
>>> Protocols: tftp ftp telnet dict ldap ldaps http file https ftps
>>> Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
>>>
>>> my laptop version does not support sftp.
>>>
>>> administrator at bunt:~$ curl -V
>>> curl 7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/
>>> 1.2.3.3 libidn/1.1
>>> Protocols: tftp ftp telnet dict ldap ldaps http file https ftps
>>> Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
>>>
>>> ___________________________________________________________
>>>
>>>
>>> this is the output from my new 9.04 box....
>>>
>>> administrator at bunt:~$ curl -V
>>> curl 7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/
>>> 1.2.3.3 libidn/1.10
>>> Protocols: tftp ftp telnet dict ldap ldaps http file https ftps
>>>  Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
>>>
>>> this version does not support sftp either. it seems that this
>>> functionality needs to be added to the default implementation.
>>>
>>>
>>> On Mon, May 11, 2009 at 7:59 AM, DYNATRON tech <dynatron at gmail.com>wrote:
>>>
>>>> i can not make changes to my target server. it's not my server. my web
>>>> host is a member of OLUG. if he gets the time, maybe he will have something
>>>> to say, but i'm not going to bother him about it. i'd like to accomplish
>>>> this on the client end.
>>>>
>>>> *anyone confused about the SFTP/FTPS protocols....
>>>> http://en.wikipedia.org/wiki/SFTP
>>>>
>>>> SFTP is SSH-FTP _AKA_ secure FTP
>>>> FTPS is FTP over SSL*
>>>>
>>>>
>>>> if cURL is working properly, it will accomplish exactly what i'm trying
>>>> to do. doing this at a CLI will allow me to automate the process with a()
>>>> simple shell script(s). i appreciate the alternative suggestions, but i'm
>>>> not the type to give up because i can't initially figure it out.
>>>>
>>>> i use filezilla at the time to push my SFTP updates, so i think that my
>>>> SSH is set up correctly, otherwise i wouldn't be able to use SFTP at all
>>>> (correct?). i can load an xml queue into filezilla, but the automation of
>>>> that doesn't have the simplicity that i'm looking for.
>>>>
>>>> cURL isn't properly configured on my laptop machine - i'm fairly well
>>>> convinced that. it seems my implementation of cURL just needs to be fixed.
>>>> that's what i'm seeking help with.
>>>>
>>>> i've got an ubuntu 9.04 box i'm playing with. that will be my next
>>>> attempt. this seems to have caught a lot of interest on the list, so i'll
>>>> keep you guys updated on my progress. maybe someone else can be saved the
>>>> headache.
>>>>
>>>> side note:
>>>> maybe we should set up an IPB forum for oluggers. that would be cool.
>>>> just link to topics from here...keep inboxes looking pretty.
>>>>
>>>>
>>>>
>>>>
>>>> On Sun, May 10, 2009 at 11:53 PM, Phil Brutsche <phil at brutsche.us>wrote:
>>>>
>>>>> Jay Hannah wrote:
>>>>>> I think you're confusing SFTP and FTPS.  :)
>>>>> I might be using the wrong acronyms, but I'm pretty sure I'm not -
>>>>> noticed I mentioned "FTP over SSL" which SSH SFTP is most definitely is
>>>>> not.
>>>>>
>>>>> ;)
>>>>>
>>>>> --
>>>>>
>>>>> Phil Brutsche
>>>>> phil at brutsche.us
>>>>> _______________________________________________
>>>>> OLUG mailing list
>>>>> OLUG at olug.org
>>>>> https://lists.olug.org/mailman/listinfo/olug
>>>>>
>>>>
>>>>
>>>> --
>>>> dynatron digital services
>>>> box 191 - 68037
>>>> www.dynatron.org
>>>> dynatron at gmail.com
>>>>
>>>
>>>
>>> --
>>> dynatron digital services
>>> box 191 - 68037
>>> www.dynatron.org
>>> dynatron at gmail.com
>>>
>>
>>
>> --
>> dynatron digital services
>> box 191 - 68037
>> www.dynatron.org
>> dynatron at gmail.com
>>
> 
> 
> 



More information about the OLUG mailing list