1libssh2_channel_direct_streamlocal_exl(i3bl)sisbhs2sh2_channel_direct_streamlocal_ex(3)
2
3
4

NAME

6       libssh2_channel_direct_streamlocal_ex - Tunnel a UNIX socket connection
7       through an SSH session
8

SYNOPSIS

10       #include <libssh2.h>
11
12       LIBSSH2_CHANNEL *
13       libssh2_channel_direct_streamlocal_ex(LIBSSH2_SESSION *session,
14                                             const char *socket_path,
15                                             const char *shost, int sport);
16

DESCRIPTION

18       session - Session instance as returned by libssh2_session_init_ex(3)
19
20       socket_path - UNIX socket to connect to using the SSH host as a proxy.
21
22       shost - Host to tell the SSH server the connection originated on.
23
24       sport - Port to tell the SSH server the connection originated from.
25
26       Tunnel a UNIX socket connection through the SSH transport via  the  re‐
27       mote  host  to  a third party. Communication from the client to the SSH
28       server remains encrypted, communication from  the  server  to  the  3rd
29       party host travels in cleartext.
30

RETURN VALUE

32       Pointer  to  a newly allocated LIBSSH2_CHANNEL instance, or NULL on er‐
33       rors.
34

ERRORS

36       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
37

SEE ALSO

39       libssh2_session_init_ex(3)
40
41
42
43libssh2 1.11.0                    10 Aplrib2s0s2h32_channel_direct_streamlocal_ex(3)
Impressum