pub struct ReverseSshConfig {
pub server_addr: String,
pub server_port: u16,
pub username: String,
pub key_path: Option<String>,
pub password: Option<String>,
pub remote_port: u32,
pub local_addr: String,
pub local_port: u16,
}Expand description
Configuration for the reverse SSH connection
Fields§
§server_addr: StringThe SSH server address to connect to
server_port: u16The SSH server port
username: StringUsername for SSH authentication
key_path: Option<String>Private key path for authentication
password: Option<String>Password for authentication (if not using key)
remote_port: u32Remote port to listen on (on the SSH server)
local_addr: StringLocal address to forward connections to
local_port: u16Local port to forward connections to
Trait Implementations§
Source§impl Clone for ReverseSshConfig
impl Clone for ReverseSshConfig
Source§fn clone(&self) -> ReverseSshConfig
fn clone(&self) -> ReverseSshConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReverseSshConfig
impl RefUnwindSafe for ReverseSshConfig
impl Send for ReverseSshConfig
impl Sync for ReverseSshConfig
impl Unpin for ReverseSshConfig
impl UnwindSafe for ReverseSshConfig
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