pub struct SshHelper;Expand description
SSH key detection and management
Implementations§
Source§impl SshHelper
impl SshHelper
Sourcepub fn has_ssh_keys() -> bool
pub fn has_ssh_keys() -> bool
Check if user has SSH keys configured
Sourcepub fn get_public_key(key_name: &str) -> Result<String>
pub fn get_public_key(key_name: &str) -> Result<String>
Get public key content for display
Sourcepub fn recommend_protocol() -> &'static str
pub fn recommend_protocol() -> &'static str
Recommend protocol based on SSH availability
Sourcepub fn get_setup_instructions() -> String
pub fn get_setup_instructions() -> String
Get setup instructions for SSH
Auto Trait Implementations§
impl Freeze for SshHelper
impl RefUnwindSafe for SshHelper
impl Send for SshHelper
impl Sync for SshHelper
impl Unpin for SshHelper
impl UnsafeUnpin for SshHelper
impl UnwindSafe for SshHelper
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