# Connection to sftp or ftp

**URL:** https://mangoh.discourse.group/t/connection-to-sftp-or-ftp/1034
**Category:** Uncategorized
**Created:** [December 27, 2017, 10:08pm UTC](https://mangoh.discourse.group/t/connection-to-sftp-or-ftp/1034 "2017-12-27T22:08:25Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [November 10, 2020, 9:57am UTC](https://mangoh.discourse.group/t/connection-to-sftp-or-ftp/1034/8 "2020-11-10T09:57:03Z")

</div>

you should include

`#include <sys/socket.h> //socket`

Here also says you can use curl API:

> [@Legato application update from ftp](https://mangoh.discourse.group/t/legato-application-update-from-ftp/546):
>
> Hi did anybody try to update application from remote ftp server? is there any sample code available for SOTA from ftp server without airvantage? Thanks

---

_[View the full topic](https://mangoh.discourse.group/t/connection-to-sftp-or-ftp/1034)._
