[olug] sftp using cURL

Adam Lassek adam at doubleprime.net
Sun May 10 08:26:03 UTC 2009


Can you install software on the target server? Another way of doing this is
to setup an ftp server on the target that only accepts connections from
localhost, and create an ssh tunnel. You can use key-based authentication to
eliminate the password prompt. This way you can use anything that supports
standard ftp to upload the files. Rsync might even work better than ftp.

On Sat, May 9, 2009 at 11:53 AM, DYNATRON tech <dynatron at gmail.com> wrote:

> it doesn't list supported protocols, but the inclusions of the openSSL
> version suggests to me that it would support encrypted connections (sftp).
>
> i would like to generate a shell script to automate the updating of my
> website, but that will be hard for me to do without cURL working properly.
>
> my next step....
>
> You could also try installing the curl.haxx.se pre-compiled version which
> > says it has SSL:
> > http://curl.haxx.se/download.html
> >
>
> On Sat, May 9, 2009 at 11:47 AM, David Walker <olug at grax.com> wrote:
>
> > OK so yours doesn't but mine does.
> >
> > curl 7.18.2 (i686-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8j zlib/1.2.3
> > Protocols: tftp ftp telnet dict ldap ldaps http file https ftps
> > Features: GSS-Negotiate IPv6 Largefile NTLM SSL libz
> >
> > DYNATRON tech wrote:
> > > 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.3libidn/1.1
> > >
> > >
> > > On Sat, May 9, 2009 at 11:08 AM, David Walker <olug at grax.com> wrote:
> > >
> > >
> > >> curl -V
> > >> will tell you what protocols your curl is compiled to support.
> > >> My gentoo curl does not support sftp or scp by default either.
> > >>
> > >> Dan Linder wrote:
> > >>
> > >>> On Sat, May 9, 2009 at 08:53, DYNATRON tech <dynatron at gmail.com>
> > wrote:
> > >>>
> > >>>
> > >>>
> > >>>> i'm trying to push a file to an sftp server using curl. i keep
> getting
> > a
> > >>>> "(1) protocol not supported or disabled in libcurl" error, but the
> > cURL
> > >>>> website states....
> > >>>>
> > >>>>
> > >>> I can't speak for the curl command line program, but is "libcurl"
> part
> > of
> > >>> the curl cli package, or is it separate? It could be that you need to
> > get
> > >>>
> > >> a
> > >>
> > >>> recompiled version of libcurl that supports sftp.
> > >>>
> > >>> This link mentions that sftp is lacking due to some concern over
> > package
> > >>> dependencies:
> > >>> https://wiki.ubuntu.com/AptSftpSupport
> > >>>
> > >>> You might want to download the curl source and try building it...or
> > work
> > >>> with Ubuntu development to resolve the issues.  :-)  (yeah, the first
> > >>>
> > >> option
> > >>
> > >>> is much easier...)
> > >>>
> > >>> You could also try installing the curl.haxx.se pre-compiled version
> > >>>
> > >> which
> > >>
> > >>> says it has SSL:
> > >>> http://curl.haxx.se/download.html
> > >>>
> > >>> Dan
> > >>>
> > >>> (BTW, curl is at 7.19.4 as reported on this URL:
> http://curl.haxx.se/)
> > >>>
> > >>> ************* *********** ******* ***** *** **
> > >>> "Quis custodiet ipsos custodes?" (Who can watch the watchmen?) --
> from
> > >>>
> > >> the
> > >>
> > >>> Satires of Juvenal
> > >>> "I do not fear computers, I fear the lack of them." -- Isaac Asimov
> > >>>
> > >> (Author)
> > >>
> > >>> ** *** ***** ******* *********** *************
> > >>> _______________________________________________
> > >>> OLUG mailing list
> > >>> OLUG at olug.org
> > >>> https://lists.olug.org/mailman/listinfo/olug
> > >>>
> > >>>
> > >>>
> > >> _______________________________________________
> > >> OLUG mailing list
> > >> OLUG at olug.org
> > >> https://lists.olug.org/mailman/listinfo/olug
> > >>
> > >>
> > >
> > >
> > >
> > >
> >
> > _______________________________________________
> > 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
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> https://lists.olug.org/mailman/listinfo/olug
>



More information about the OLUG mailing list