class

SSH2::Agent

Inherits Enumerable / Reference / Object

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.

Constructors

new(session : SSH2::Session)
Source

Instance methods

authenticate(username)

Authenticate username with agent

Source
connect

Connect to an ssh-agent running on the system.

Source
disconnect

Close a connection to an ssh-agent.

Source
each

Yield each identity held by the agent as a PublicKey. Call list_identities first to populate the collection.

Source
finalize
Source
list_identities

Request an ssh-agent to list of public keys, and stores them in the internal collection of the handle.

Source
to_unsafe
Source

Nested types