pub struct Ssh { /* private fields */ }
Expand description

Represents an ssh2 client

Implementations

Connect to a remote TCP server using SSH

Host this client is connected to

Port this client is connected to on remote host

Authenticates the Ssh if not already authenticated

Detects the family of operating system on the remote machine

Consume Ssh and produce a DistantClient that is connected to a remote distant server that is spawned using the ssh client

Consume Ssh and launch a distant server, returning a DistantSingleKeyCredentials tied to the launched server that includes credentials

Consume Ssh and produce a DistantClient that is powered by an ssh client underneath

Consume Ssh and produce a BoxedDistantWriterReader that is powered by an ssh client underneath

Consumes Ssh and produces a DistantClient and DistantApiServer pair

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Converts reference to Any

Converts mutable reference to Any

Consumes and produces Box<dyn Any>

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Applies the Compat adapter by value. Read more

Applies the Compat adapter by shared reference. Read more

Applies the Compat adapter by mutable reference. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more