# Curl and libssh2

**URL:** <https://forum.legato.io/t/curl-and-libssh2/3857>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [November 7, 2018, 2:45am UTC](https://forum.legato.io/t/curl-and-libssh2/3857 "2018-11-07T02:45:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![muralinagraj](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@muralinagraj](https://forum.legato.io/u/muralinagraj)\
**Post date:** [November 14, 2018, 9:47am UTC](https://forum.legato.io/t/curl-and-libssh2/3857/2 "2018-11-14T09:47:03Z")

</div>

Hi @shib,  
When we tried with WP7702 to connect to sftp using the “curl -v -k -u demo:password sftp://test.rebex.net” , It fails to connect to sftp throwing an error “Failure establishing ssh session”

Below are the complete logs, Please confirm whether you also see the same logs. We are looking into it.

```
root@swi-mdm9x28-wp:~# curl -v -k -u demo:password sftp://test.rebex.net
* Rebuilt URL to: sftp://test.rebex.net/
* Trying 195.144.107.198...
* TCP_NODELAY set
* Connected to test.rebex.net (195.144.107.198) port 22 (#0)
* Failure establishing ssh session
* Closing connection 0
curl: (2) Failure establishing ssh session

```

Regards,  
Muralidhara N.

---

_[View the full topic](https://forum.legato.io/t/curl-and-libssh2/3857)._
