[][src]Struct ssh2::Agent

pub struct Agent { /* fields omitted */ }

A structure representing a connection to an SSH agent.

Agents can be used to authenticate a session.

Methods

impl Agent[src]

pub fn connect(&mut self) -> Result<(), Error>[src]

Connect to an ssh-agent running on the system.

pub fn disconnect(&mut self) -> Result<(), Error>[src]

Close a connection to an ssh-agent.

pub fn list_identities(&mut self) -> Result<(), Error>[src]

Request an ssh-agent to list of public keys, and stores them in the internal collection of the handle.

Call identities to get the public keys.

Important traits for Identities<'agent>
pub fn identities(&self) -> Identities[src]

Get an iterator over the identities of this agent.

pub fn userauth(
    &self,
    username: &str,
    identity: &PublicKey
) -> Result<(), Error>
[src]

Attempt public key authentication with the help of ssh-agent.

Trait Implementations

impl Drop for Agent[src]

Auto Trait Implementations

impl Unpin for Agent

impl !Send for Agent

impl !Sync for Agent

impl !UnwindSafe for Agent

impl !RefUnwindSafe for Agent

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]