pub struct Config {
pub client_id: SshId,
pub limits: Limits,
pub window_size: u32,
pub maximum_packet_size: u32,
pub channel_buffer_size: usize,
pub preferred: Preferred,
pub inactivity_timeout: Option<Duration>,
pub keepalive_interval: Option<Duration>,
pub keepalive_max: usize,
pub anonymous: bool,
pub gex: GexParams,
pub nodelay: bool,
}Expand description
The configuration of clients.
Fields§
§client_id: SshIdThe client ID string sent at the beginning of the protocol.
limits: LimitsThe bytes and time limits before key re-exchange.
window_size: u32The initial size of a channel (used for flow control).
maximum_packet_size: u32The maximal size of a single packet.
channel_buffer_size: usizeBuffer size for each channel (a number of unprocessed messages to store before propagating backpressure to the TCP stream)
preferred: PreferredLists of preferred algorithms.
inactivity_timeout: Option<Duration>Time after which the connection is garbage-collected.
keepalive_interval: Option<Duration>If nothing is received from the server for this amount of time, send a keepalive message.
keepalive_max: usizeIf this many keepalives have been sent without reply, close the connection.
anonymous: boolWhether to expect and wait for an authentication call.
gex: GexParamsDH dynamic group exchange parameters.
nodelay: boolIf active, invoke set_nodelay(true) on the ssh socket; disabled by default (i.e. Nagle’s algorithm is active).