Struct thrussh::server::Config [] [src]

pub struct Config {
    pub server_id: String,
    pub methods: MethodSet,
    pub auth_banner: Option<&'static str>,
    pub auth_rejection_time: Duration,
    pub keys: Vec<KeyPair>,
    pub limits: Limits,
    pub window_size: u32,
    pub maximum_packet_size: u32,
    pub preferred: Preferred,
    pub max_auth_attempts: usize,
    pub connection_timeout: Option<Duration>,
}

Configuration of a server.

Fields

The server ID string sent at the beginning of the protocol.

Authentication methods proposed to the client.

The authentication banner, usually a warning message shown to the client.

Authentication rejections must happen in constant time for security reasons. Thrussh does not handle this by default.

The server's keys. The first key pair in the client's preference order will be chosen.

The bytes and time limits before key re-exchange.

The initial size of a channel (used for flow control).

The maximal size of a single packet.

Lists of preferred algorithms.

Maximal number of allowed authentication attempts.

Time after which the connection is garbage-collected.

Trait Implementations

impl Debug for Config
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Config
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Config

impl Sync for Config