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<Algorithm>, pub limits: Limits, pub window_size: u32, pub maximum_packet_size: u32, pub preferred: Preferred, }
Fields
server_id: String
The server ID string sent at the beginning of the protocol.
methods: MethodSet
Authentication methods proposed to the client.
The authentication banner, usually a warning message shown to the client.
auth_rejection_time: Duration
Authentication rejections must happen in constant time for security reasons.
keys: Vec<Algorithm>
The server's keys. The first key pair in the client's preference order will be chosen.
limits: Limits
The bytes and time limits before key re-exchange.
window_size: u32
The initial size of a channel (used for flow control).
maximum_packet_size: u32
The maximal size of a single packet.
preferred: Preferred
Lists of preferred algorithms.