|
SWOC System
Server Wait On Clients System.
|
SSH connection processing functions. More...
#include <errno.h>#include <libssh/libssh.h>#include <pthread.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/socket.h>#include <sys/types.h>#include <syslog.h>#include <libswoccommon.h>#include <mge-errno.h>#include <mgememory.h>
Functions | |
| int | open_ssh_tunnel (void) |
| Establish SSH connection. More... | |
| int | close_ssh_tunnel (void) |
| Disconnect and close an SSH session. More... | |
SSH connection processing functions.
Covers tunnel creation and destruction including all authentication. Creates a seperate thread for data relay through the tunnel.
Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0
| int close_ssh_tunnel | ( | void | ) |
Disconnect and close an SSH session.
Join data relay thread, free channel and disconnect session. On error mge_errno will be set.
| int open_ssh_tunnel | ( | void | ) |
Establish SSH connection.
Create session, connect to server, create a tunnel and spawn a thread to relay data through the tunnel. On error mge_errno will be set.