ssh2.agent
- class ssh2.agent.Agent
- connect(self)
Connect to agent.
- Raises:
ssh2.exceptions.AgentConnectionErroron errors connecting to agent.- Return type:
- get_identities(self)
List and get identities from agent
- Return type:
list(
ssh2.pkey.PublicKey)
- get_identity_path(self)
- list_identities(self)
This method is a no-op - use
ssh2.agent.Agent.get_identities()to list and retrieve identities.
- set_identity_path(self, path)
- userauth(self, username, PublicKey pkey)
Perform user authentication with specific public key
- Parameters:
username (str) – User name to authenticate as
pkey (
ssh2.pkey.PublicKey) – Public key to authenticate with
- Raises:
ssh2.exceptions.AgentAuthenticationErroron errors authenticating.- Return type: