libssh2\_sftp\_get\_channel(3) libssh2 libssh2\_sftp\_get\_channel(3)

# [NAME](#NAME)

libssh2\_sftp\_get\_channel - return the channel of sftp

# [SYNOPSIS](#SYNOPSIS)

```
#include <libssh2.h>
#include <libssh2_sftp.h>
LIBSSH2_CHANNEL *
libssh2_sftp_get_channel(LIBSSH2_SFTP *sftp);
```

# [DESCRIPTION](#DESCRIPTION)

*sftp* - SFTP instance as returned by [**libssh2\_sftp\_init(3)**](/man/os/libssh2/libssh2_sftp_init.3)

Return the channel of the given sftp handle.

# [RETURN VALUE](#RETURN_VALUE)

The channel of the SFTP instance or NULL if something was wrong.

# [AVAILABILITY](#AVAILABILITY)

Added in 1.4.0

# [SEE ALSO](#SEE_ALSO)

[**libssh2\_sftp\_init(3)**](/man/os/libssh2/libssh2_sftp_init.3)

9 Sep 2011 libssh2 1.4.0

---

Document: libssh2_sftp_get_channel(3) from libssh2 1.11.1-r11 (Chainguard OS)
Source: https://github.com/libssh2/libssh2.git
