# SFTP using libcurl

**URL:** <https://mangoh.discourse.group/t/sftp-using-libcurl/631>\
**Category:** Services\
**Created:** [July 19, 2017, 4:00am UTC](https://mangoh.discourse.group/t/sftp-using-libcurl/631 "2017-07-19T04:00:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![niladridm](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/niladridm/32/91_2.png) [@niladridm](https://mangoh.discourse.group/u/niladridm)\
**Post date:** [July 19, 2017, 4:00am UTC](https://mangoh.discourse.group/t/sftp-using-libcurl/631/1 "2017-07-19T04:00:07Z")

</div>

Hi  
I want to update the curl version to the latest 7.54.1. Firmware Packages - Release 14 have curl version 7.37.1 which do not support SFTP. If anyone done already please share the steps here.

below is the curl version details for Release14  
root@swi-mdm9x15:~# curl -V  
curl 7.37.1 (arm-poky-linux-gnueabi) libcurl/7.37.1 GnuTLS/3.3.5 zlib/1.2.8  
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp  
Features: IPv6 NTLM NTLM\_WB SSL libz TLS-SRP

Thanks

---

<div class="post-metadata">

**Author:** ![CoRfr](https://avatars.discourse-cdn.com/v4/letter/c/b19c9b/32.png) [@CoRfr](https://mangoh.discourse.group/u/CoRfr)\
**Post date:** [July 19, 2017, 3:41pm UTC](https://mangoh.discourse.group/t/sftp-using-libcurl/631/2 "2017-07-19T15:41:09Z")

</div>

Hi,

One method would be to rebuild the rootfs with an updated curl recipe.  
If you add the content of [http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/recipes-support/curl](http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/recipes-support/curl) into `meta-swi/common/recipes-support` (or your own layer, up to you), you should be able to get an up-to-date curl.

---

<div class="post-metadata">

**Author:** ![niladridm](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/niladridm/32/91_2.png) [@niladridm](https://mangoh.discourse.group/u/niladridm)\
**Post date:** [July 21, 2017, 4:17am UTC](https://mangoh.discourse.group/t/sftp-using-libcurl/631/4 "2017-07-21T04:17:33Z")

</div>

Hi Roussel Thank you.  
i am able to build yocto with updated curl recipe but this do not come with all the protocol. Dont know how to include the protocol package.

i have removed PACKAGECONFIG ??= “${@bb.utils.filter(‘DISTRO\_FEATURES’, ‘ipv6’, d)} gnutls proxy zlib” from .bb file as i was getting ERROR during build (may be this is the reason)

See below what i am getting now

root@swi-mdm9x15:~# legato version  
16.10.3\_14a3a0c356102949b3a755b68e8ae60d\_modified  
root@swi-mdm9x15:~# curl -V  
curl 7.54.1 (arm-poky-linux-gnueabi) libcurl/7.54.1  
Release-Date: 2017-06-14  
**Protocols: file ftp http**  
Features: UnixSockets  
root@swi-mdm9x15:~#

Thnaks

---

<div class="post-metadata">

**Author:** ![CoRfr](https://avatars.discourse-cdn.com/v4/letter/c/b19c9b/32.png) [@CoRfr](https://mangoh.discourse.group/u/CoRfr)\
**Post date:** [July 21, 2017, 4:24am UTC](https://mangoh.discourse.group/t/sftp-using-libcurl/631/5 "2017-07-21T04:24:21Z")

</div>

To add `sftp` it seems that you will need `gnutls` support.  
To add `https` it would be `ssl` I think.

Could you try to add `ssl gnutls` in `DISTRO_FEATURES_DEFAULT` in the file `meta-swi-extras/common/conf/distro/poky-swi-ext.conf`.  
Cf [http://www.yoctoproject.org/docs/1.7.3/ref-manual/ref-manual.html#ref-features-distro](http://www.yoctoproject.org/docs/1.7.3/ref-manual/ref-manual.html#ref-features-distro) for some more info on this topic.
