Struct ssh2::Agent
[−]
[src]
pub struct Agent<'sess> { /* fields omitted */ }
A structure representing a connection to an SSH agent.
Agents can be used to authenticate a session.
Methods
impl<'sess> Agent<'sess>
[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]
ⓘImportant traits for Identities<'agent>
Get an iterator over 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.