17#include <libssh/libssh.h>
24#define STDERR_FILENO 2
28#define STDOUT_FILENO 1
31#define SSH_BASE_OPTIONS \
32 { "remote-host", ws_required_argument, NULL, OPT_REMOTE_HOST}, \
33 { "remote-port", ws_required_argument, NULL, OPT_REMOTE_PORT}, \
34 { "remote-username", ws_required_argument, NULL, OPT_REMOTE_USERNAME}, \
35 { "remote-password", ws_required_argument, NULL, OPT_REMOTE_PASSWORD}, \
36 { "remote-count", ws_required_argument, NULL, OPT_REMOTE_COUNT}, \
37 { "sshkey", ws_required_argument, NULL, OPT_SSHKEY}, \
38 { "sshkey-passphrase", ws_required_argument, NULL, OPT_SSHKEY_PASSPHRASE}, \
39 { "proxycommand", ws_required_argument, NULL, OPT_PROXYCOMMAND}, \
40 { "ssh-sha1", ws_no_argument, NULL, OPT_SSH_SHA1}
42#define SSH_BASE_PACKET_OPTIONS \
44 { "remote-interface", ws_required_argument, NULL, OPT_REMOTE_INTERFACE}, \
45 { "remote-filter", ws_required_argument, NULL, OPT_REMOTE_FILTER}
53 char* sshkey_passphrase;
63ssh_session create_ssh_connection(
const ssh_params_t* ssh_params,
char** err_info);
66int ssh_channel_printf(ssh_channel channel,
const char* fmt, ...);
69void ssh_cleanup(ssh_session* sshs, ssh_channel* channel);
78void ssh_params_set_log_level(
ssh_params_t* ssh_params,
enum ws_log_level level);
Definition extcap-base.h:60