Struct ssh2::Agent [−][src]
A structure representing a connection to an SSH agent.
Agents can be used to authenticate a session.
Implementations
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.
pub fn identities(&self) -> Result<Vec<PublicKey>, Error>
[src]
Get list of the identities of this agent.
pub fn userauth(
&self,
username: &str,
identity: &PublicKey
) -> Result<(), Error>
[src]
&self,
username: &str,
identity: &PublicKey
) -> Result<(), Error>
Attempt public key authentication with the help of ssh-agent.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,