pub enum KeySource {
File(PathBuf, Option<SecretString>),
Agent(PathBuf),
}Expand description
Where the SSH session sources its private key from. The CLI’s
resolution stack collapses --ssh-key, profile entries,
FERRULE_<NAME>_SSH_KEY, default identity files, and
SSH_AUTH_SOCK into one of these variants before reaching
setup_tunnel.
Variants§
File(PathBuf, Option<SecretString>)
A private key file on disk. The russh layer loads and (if
encrypted) decrypts it via russh::keys::load_secret_key.
None means probe first and error if encrypted;
Some means attempt decryption with the provided passphrase.
Agent(PathBuf)
SSH agent socket. The russh layer routes signing requests through the agent at this socket path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeySource
impl RefUnwindSafe for KeySource
impl Send for KeySource
impl Sync for KeySource
impl Unpin for KeySource
impl UnsafeUnpin for KeySource
impl UnwindSafe for KeySource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more