class
SSH2::Agent
- SSH2::Agent
- Reference
- Object
Overview
Talks to the local ssh-agent (via SSH_AUTH_SOCK) to authenticate a session
with one of the identities it holds. See Session#login_with_agent.
Included Modules
- Enumerable(SSH2::Agent::PublicKey)
Defined in:
agent.crConstructors
Instance Method Summary
-
#authenticate(username)
Authenticate username with agent
-
#connect
Connect to an ssh-agent running on the system.
-
#disconnect
Close a connection to an ssh-agent.
-
#each(&)
Yield each identity held by the agent as a
PublicKey. - #finalize
-
#list_identities
Request an ssh-agent to list of public keys, and stores them in the internal collection of the handle.
- #to_unsafe : Pointer(Void)
Constructor Detail
Instance Method Detail
def each(&)
#
Yield each identity held by the agent as a PublicKey. Call
#list_identities first to populate the collection.
def list_identities
#
Request an ssh-agent to list of public keys, and stores them in the internal collection of the handle.