ssh_jumper_model 0.4.0

Async SSH tunnel through a jump host (data types).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{borrow::Cow, path::Path};

/// Authentication method and details.
#[derive(Clone, Debug, PartialEq)]
pub enum AuthMethod<'auth> {
    /// Use a private/public key pair for authentication.
    KeyPair {
        /// Private key to use.
        private_key: Cow<'auth, Path>,
        /// Passphrase for the private key.
        passphrase: Option<Cow<'auth, str>>,
    },
    Password {
        /// Password to use.
        password: Cow<'auth, str>,
    },
}