1libssh2_channel_direct_tcpip_ex(3l)ibssh2 manuallibssh2_channel_direct_tcpip_ex(3)
2
3
4

NAME

6       libssh2_channel_direct_tcpip_ex  -  Tunnel  a TCP connection through an
7       SSH session
8

SYNOPSIS

10       #include <libssh2.h>
11
12       LIBSSH2_CHANNEL * libssh2_channel_direct_tcpip_ex(LIBSSH2_SESSION *ses‐
13       sion, const char *host, int port, const char *shost, int sport);
14
15       LIBSSH2_CHANNEL  *  libssh2_channel_direct_tcpip(LIBSSH2_SESSION  *ses‐
16       sion, const char *host, int port);
17
18

DESCRIPTION

20       session - Session instance as returned by libssh2_session_init_ex(3)
21
22       host - Third party host to connect to using the SSH host as a proxy.
23
24       port - Port on third party host to connect to.
25
26       shost - Host to tell the SSH server the connection originated on.
27
28       sport - Port to tell the SSH server the connection originated from.
29
30       Tunnel a TCP/IP connection through the SSH  transport  via  the  remote
31       host  to a third party. Communication from the client to the SSH server
32       remains encrypted, communication from the server to the 3rd party  host
33       travels in cleartext.
34
35

RETURN VALUE

37       Pointer  to  a  newly  allocated  LIBSSH2_CHANNEL  instance, or NULL on
38       errors.
39

ERRORS

41       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
42

SEE ALSO

44       libssh2_session_init_ex(3)
45
46
47
48libssh2 0.15                      1 Jun 2007libssh2_channel_direct_tcpip_ex(3)
Impressum