pub struct AutoKeySetupConfig {
pub enabled: bool,
pub suggest_on_password_auth: bool,
pub disable_password_auth: bool,
pub key_type: String,
pub key_directory: String,
pub backup_sshd_config: bool,
pub confirm_before_disable: bool,
}Expand description
Auto SSH Key Setup configuration.
Fields§
§enabled: boolEnable the auto key setup feature.
suggest_on_password_auth: boolShow suggestion banner when password authentication is detected.
disable_password_auth: boolAutomatically disable password authentication after key setup (requires sudo).
key_type: StringSSH key type to generate (ed25519 | rsa-4096).
key_directory: StringDirectory where SSH keys are stored (default: ~/.ssh).
backup_sshd_config: boolAlways create a backup of sshd_config before modification.
confirm_before_disable: boolAsk for confirmation before disabling password authentication.
Trait Implementations§
Source§impl Clone for AutoKeySetupConfig
impl Clone for AutoKeySetupConfig
Source§fn clone(&self) -> AutoKeySetupConfig
fn clone(&self) -> AutoKeySetupConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutoKeySetupConfig
impl Debug for AutoKeySetupConfig
Source§impl Default for AutoKeySetupConfig
impl Default for AutoKeySetupConfig
Source§impl<'de> Deserialize<'de> for AutoKeySetupConfigwhere
AutoKeySetupConfig: Default,
impl<'de> Deserialize<'de> for AutoKeySetupConfigwhere
AutoKeySetupConfig: Default,
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
Auto Trait Implementations§
impl Freeze for AutoKeySetupConfig
impl RefUnwindSafe for AutoKeySetupConfig
impl Send for AutoKeySetupConfig
impl Sync for AutoKeySetupConfig
impl Unpin for AutoKeySetupConfig
impl UnsafeUnpin for AutoKeySetupConfig
impl UnwindSafe for AutoKeySetupConfig
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