Class Net::SSH::Authentication::Agent
In: lib/net/ssh/authentication/agent/socket.rb
lib/net/ssh/authentication/agent/java_pageant.rb
Parent: Object

This class implements an agent for JRuby + Pageant.

Written by Artūras Šlajus <arturas.slajus@gmail.com>

Methods

close   close   connect   connect   connect!   connect!   identities   identities   negotiate!   new   new   sign   sign  

Included Modules

Loggable Loggable JRubyPageant

Classes and Modules

Module Net::SSH::Authentication::Agent::Comment
Module Net::SSH::Authentication::Agent::Key

Constants

SSH2_AGENT_REQUEST_VERSION = 1
SSH2_AGENT_REQUEST_IDENTITIES = 11
SSH2_AGENT_IDENTITIES_ANSWER = 12
SSH2_AGENT_SIGN_REQUEST = 13
SSH2_AGENT_SIGN_RESPONSE = 14
SSH2_AGENT_FAILURE = 30
SSH2_AGENT_VERSION_RESPONSE = 103
SSH_COM_AGENT2_FAILURE = 102
SSH_AGENT_REQUEST_RSA_IDENTITIES = 1
SSH_AGENT_RSA_IDENTITIES_ANSWER1 = 2
SSH_AGENT_RSA_IDENTITIES_ANSWER2 = 5
SSH_AGENT_FAILURE = 5

Attributes

socket  [R]  The underlying socket being used to communicate with the SSH agent.

Public Class methods

Instantiates a new agent object, connects to a running SSH agent, negotiates the agent protocol version, and returns the agent object.

Instantiates a new agent object, connects to a running SSH agent, negotiates the agent protocol version, and returns the agent object.

Creates a new Agent object, using the optional logger instance to report status.

Creates a new Agent object, using the optional logger instance to report status.

Public Instance methods

Closes this socket. This agent reference is no longer able to query the agent.

Simulate agent close. This agent reference is no longer able to query the agent.

Connect to the agent process using the socket factory and socket name given by the attribute writers. If the agent on the other end of the socket reports that it is an SSH2-compatible agent, this will fail (it only supports the ssh-agent distributed by OpenSSH).

Connect to the agent process using the socket factory and socket name given by the attribute writers. If the agent on the other end of the socket reports that it is an SSH2-compatible agent, this will fail (it only supports the ssh-agent distributed by OpenSSH).

Return an array of all identities (public keys) known to the agent. Each key returned is augmented with a comment property which is set to the comment returned by the agent for that key.

Return an array of all identities (public keys) known to the agent. Each key returned is augmented with a comment property which is set to the comment returned by the agent for that key.

Attempts to negotiate the SSH agent protocol version. Raises an error if the version could not be negotiated successfully.

Using the agent and the given public key, sign the given data. The signature is returned in SSH2 format.

Using the agent and the given public key, sign the given data. The signature is returned in SSH2 format.

[Validate]