diff --git a/russh/src/client/mod.rs b/russh/src/client/mod.rs index bdef67d..8988ae7 100644 --- a/russh/src/client/mod.rs +++ b/russh/src/client/mod.rs @@ -383,9 +383,8 @@ impl Handle { /// Authenticate using a custom method that implements the /// [`Signer`][auth::Signer] trait. Currently, this crate only provides an - /// implementation for an [SSH - /// agent][russh_keys::agent::client::AgentClient]. - pub async fn authenticate_agent, S: auth::Signer>( + /// implementation for an [SSH agent][russh_keys::agent::client::AgentClient]. + pub async fn authenticate_publickey_with, S: auth::Signer>( &mut self, user: U, key: ssh_key::PublicKey,