pub struct SSHConfig {
pub ssh_port: u16,
pub username: Option<String>,
pub password: Option<String>,
pub key_file: Option<PathBuf>,
pub key_passphrase: Option<String>,
}Expand description
The information used to connect to a remote host via SSH.
Fields§
§ssh_port: u16The SSH port this host listens to.
username: Option<String>The username of the remote host. Defaulted to the local username.
password: Option<String>The password of the remote host. If not specified ssh-agent will be used for the connection.
key_file: Option<PathBuf>The path to the private key to use for authenticating to the remote host.
key_passphrase: Option<String>The passphrase for decrypting the private SSH key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SSHConfig
impl<'de> Deserialize<'de> for SSHConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SSHConfig
impl StructuralPartialEq for SSHConfig
Auto Trait Implementations§
impl Freeze for SSHConfig
impl RefUnwindSafe for SSHConfig
impl Send for SSHConfig
impl Sync for SSHConfig
impl Unpin for SSHConfig
impl UnwindSafe for SSHConfig
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
Source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more