Struct ssh2_config::HostParams [−][src]
pub struct HostParams {Show 20 fields
pub bind_address: Option<String>,
pub bind_interface: Option<String>,
pub ca_signature_algorithms: Option<Vec<String>>,
pub certificate_file: Option<PathBuf>,
pub ciphers: Option<Vec<String>>,
pub compression: Option<bool>,
pub connection_attempts: Option<usize>,
pub connect_timeout: Option<Duration>,
pub host_key_algorithms: Option<Vec<String>>,
pub host_name: Option<String>,
pub identity_file: Option<Vec<PathBuf>>,
pub kex_algorithms: Option<Vec<String>>,
pub mac: Option<Vec<String>>,
pub port: Option<u16>,
pub pubkey_accepted_algorithms: Option<Vec<String>>,
pub pubkey_authentication: Option<bool>,
pub remote_forward: Option<u16>,
pub server_alive_interval: Option<Duration>,
pub tcp_keep_alive: Option<bool>,
pub user: Option<String>,
}Expand description
Describes the ssh configuration. Configuration is describes in this document: http://man.openbsd.org/OpenBSD-current/man5/ssh_config.5 Only arguments supported by libssh2 are implemented
Fields
bind_address: Option<String>Specifies to use the specified address on the local machine as the source address of the connection
bind_interface: Option<String>Use the specified address on the local machine as the source address of the connection
ca_signature_algorithms: Option<Vec<String>>Specifies which algorithms are allowed for signing of certificates by certificate authorities
certificate_file: Option<PathBuf>Specifies a file from which the user’s certificate is read
ciphers: Option<Vec<String>>Specifies the ciphers allowed for protocol version 2 in order of preference
compression: Option<bool>Specifies whether to use compression
connection_attempts: Option<usize>Specifies the number of attempts to make before exiting
connect_timeout: Option<Duration>Specifies the timeout used when connecting to the SSH server
host_key_algorithms: Option<Vec<String>>Specifies the host key signature algorithms that the client wants to use in order of preference
host_name: Option<String>Specifies the real host name to log into
identity_file: Option<Vec<PathBuf>>Specifies the path of the identity file to be used when authenticating. More than one file can be specified. If more than one file is specified, they will be read in order
kex_algorithms: Option<Vec<String>>Specifies the available KEX (Key Exchange) algorithms
mac: Option<Vec<String>>Specifies the MAC (message authentication code) algorithms in order of preference
port: Option<u16>Specifies the port number to connect on the remote host.
pubkey_accepted_algorithms: Option<Vec<String>>Specifies the signature algorithms that will be used for public key authentication
pubkey_authentication: Option<bool>Specifies whether to try public key authentication using SSH keys
remote_forward: Option<u16>Specifies that a TCP port on the remote machine be forwarded over the secure channel
server_alive_interval: Option<Duration>Sets a timeout interval in seconds after which if no data has been received from the server, keep alive will be sent
tcp_keep_alive: Option<bool>Specifies whether to send TCP keepalives to the other side
user: Option<String>Specifies the user to log in as.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for HostParams
impl Send for HostParams
impl Sync for HostParams
impl Unpin for HostParams
impl UnwindSafe for HostParams
Blanket Implementations
Mutably borrows from an owned value. Read more
