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       /fIsession/fP - Session instance as returned by libssh2_session_init(3)
21
22       /fIhost/fP - Third party host to connect to using the  SSH  host  as  a
23       proxy.
24
25       /fIport/fP - Port on third party host to connect to.
26
27       /fIshost/fP - Host to tell the SSH server the connection originated on.
28
29       /fIsport/fP  -  Port  to  tell the SSH server the connection originated
30       from.
31
32       Tunnel a TCP/IP connection through the SSH  transport  via  the  remote
33       host  to a third party. Communication from the client to the SSH server
34       remains encrypted, communication from the server to the 3rd party  host
35       travels in cleartext.
36
37

RETURN VALUE

39       Pointer  to  a  newly  allocated  LIBSSH2_CHANNEL  instance, or NULL on
40       errors.
41
42

ERRORS

44       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
45
46

SEE ALSO

48       libssh2_session_init(3)
49
50
51
52libssh2 0.15                      1 Jun 2007libssh2_channel_direct_tcpip_ex(3)
Impressum