struct tapi_ssh_client_opt

Overview

OpenSSH client specific options More…

#include <tapi_ssh.h>

struct tapi_ssh_client_opt {
    // fields

    char* path;
    bool gateway_ports;
    char* local_port_forwarding;
    bool forbid_remote_commands_execution;
    char* identity_file;
    char* login_name;
    tapi_ssh_strict_host_key_checking_t strict_host_key_checking;
    char* user_known_hosts_file;
    unsigned int port;
    char* remote_port_forwarding;
    char* destination;
    char* command;
};

Detailed Documentation

OpenSSH client specific options

Fields

char* path

Path to ssh binary

bool gateway_ports

Allow remote hosts to connect to local forwarded ports.

ssh -g
char* local_port_forwarding

String representation of connection to the given TCP port or Unix socket on the local (client) host has to be forwarded to the given host and port, or Unix socket, on the remote side.

ssh -L <local_port_forwarding>
bool forbid_remote_commands_execution

Do not execute a remote command. This is useful for just forwarding ports.

ssh -N
char* identity_file

File with identity (private key) for public key authentication

ssh -i <identity_file>
char* login_name

The user to log in on the remote machine

ssh -l <login_name>
tapi_ssh_strict_host_key_checking_t strict_host_key_checking

Sets up extra confirmation during connection to unknown host

If StrictHostKeyChecking=yes and host to connect is unknown, the user is required to explicitly confirm connection to the host by answering the question: “Are you sure you want to continue connecting (yes/no/[fingerprint])?”

ssh -o StrictHostKeyChecking=<strict_host_key_checking>

May be yes, no, accept-new

char* user_known_hosts_file

File to store known hosts keys

ssh -o UserKnownHostsFile=<user_known_hosts_file>
unsigned int port

Remote host port to connect

ssh -p <port>
char* remote_port_forwarding

String representation of connection to the given TCP port or Unix socket on the remote (server) host has to be forwarded to the local side.

ssh -R <remote_port_forwarding>
char* destination

Server to connect to

char* command

Command to be executed on the server