class SSH2::Agent

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

Defined in:

agent.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(session : SSH2::Session) #

[View source]

Instance Method Detail

def authenticate(username) #

Authenticate username with agent


[View source]
def connect #

Connect to an ssh-agent running on the system.


[View source]
def disconnect #

Close a connection to an ssh-agent.


[View source]
def each(&) #

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


[View source]
def finalize #

[View source]
def list_identities #

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


[View source]
def to_unsafe : Pointer(Void) #

[View source]