Skip to main content

PREFERRED_HOST_KEY_ALGOS

Static PREFERRED_HOST_KEY_ALGOS 

Source
pub static PREFERRED_HOST_KEY_ALGOS: &[Algorithm]
Expand description

Preferred host-key algorithms advertised to the server, ordered from most to least preferred. RSA variants (including the legacy ssh-rsa / SHA-1) are included so that older servers that only offer RSA host keys are still reachable.

In russh 0.61, host-key algorithms are represented as ssh_key::Algorithm (re-exported at russh::keys::Algorithm) instead of the old key::Name constants.