pub fn authenticate(
filter: &IdentityFilter,
agent: impl SSHAgent,
principal: &str,
) -> Result<bool>
Expand description
Finds the first key, if any, that the ssh-agent knows about that is also present in the file referenced by keys_file_path, sends a random message to be signed and verifies the signature with the public key.
Returns Ok(true) if a key was found and the signature was correct, Ok(false) if no key was found, and Err if agent communication or signature verification failed.