Struct async_ssh::NewSession [] [src]

pub struct NewSession<S: AsyncRead + AsyncWrite> { /* fields omitted */ }

A newly established, unauthenticated SSH session.

All you can really do with this in authenticate it using one of the authenticate_* methods. You'll most likely want [NewSession::authenticate_key].

Methods

impl<S: AsyncRead + AsyncWrite + 'static> NewSession<S>
[src]

Important traits for Box<W>
[src]

Authenticate as the given user using the given keypair.

See also thrussh::client::Connection::authenticate_key.

Trait Implementations

Auto Trait Implementations

impl<S> !Send for NewSession<S>

impl<S> !Sync for NewSession<S>