Struct ssh_jumper::SshSession [−][src]
pub struct SshSession(_);
Expand description
SSH session that has been established.
Methods from Deref<Target = AsyncSession<TcpStream>>
pub async fn userauth_password(
&'_ self,
username: &'_ str,
password: &'_ str
) -> Result<(), Error>
[src]pub async fn userauth_keyboard_interactive<P>(
&'_ self,
username: &'_ str,
prompter: &'_ mut P
) -> Result<(), Error> where
P: KeyboardInteractivePrompt,
[src]pub async fn userauth_pubkey_file(
&'_ self,
username: &'_ str,
pubkey: Option<&'_ Path>,
privatekey: &'_ Path,
passphrase: Option<&'_ str>
) -> Result<(), Error>
[src]pub async fn userauth_pubkey_memory(
&'_ self,
username: &'_ str,
pubkeydata: Option<&'_ str>,
privatekeydata: &'_ str,
passphrase: Option<&'_ str>
) -> Result<(), Error>
[src]pub async fn userauth_hostbased_file(
&'_ self,
username: &'_ str,
publickey: &'_ Path,
privatekey: &'_ Path,
passphrase: Option<&'_ str>,
hostname: &'_ str,
local_username: Option<&'_ str>
) -> Result<(), Error>
[src]pub async fn method_pref(
&'_ self,
method_type: MethodType,
prefs: &'_ str
) -> Result<(), Error>
[src]pub async fn supported_algs(
&'_ self,
method_type: MethodType
) -> Result<Vec<&'static str, Global>, Error>
[src]pub async fn channel_direct_tcpip(
&'_ self,
host: &'_ str,
port: u16,
src: Option<(&'_ str, u16)>
) -> Result<AsyncChannel<S>, Error>
[src]pub async fn channel_forward_listen(
&'_ self,
remote_port: u16,
host: Option<&'_ str>,
queue_maxsize: Option<u32>
) -> Result<(AsyncListener<S>, u16), Error>
[src]pub async fn scp_recv(
&'_ self,
path: &'_ Path
) -> Result<(AsyncChannel<S>, ScpFileStat), Error>
[src]pub async fn scp_send(
&'_ self,
remote_path: &'_ Path,
mode: i32,
size: u64,
times: Option<(u64, u64)>
) -> Result<AsyncChannel<S>, Error>
[src]pub async fn channel_open(
&'_ self,
channel_type: &'_ str,
window_size: u32,
packet_size: u32,
message: Option<&'_ str>
) -> Result<AsyncChannel<S>, Error>
[src]pub async fn disconnect(
&'_ self,
reason: Option<DisconnectCode>,
description: &'_ str,
lang: Option<&'_ str>
) -> Result<(), Error>
[src]Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SshSession
impl Send for SshSession
impl Sync for SshSession
impl Unpin for SshSession
impl !UnwindSafe for SshSession