module Net::SSH::Authentication::Pageant

This module encapsulates the implementation of a socket factory that uses the PuTTY “pageant” utility to obtain information about SSH identities.

This code is a slightly modified version of the original implementation by Guillaume Marçais (free at guillaume.marcais.fr). It is used and relicensed by permission.

Constants

AGENT_COPYDATA_ID
AGENT_MAX_MSGLEN

From Putty pageant.c

Public Class Methods

socket_factory() click to toggle source

Selects which socket to use depending on the ruby version This is needed due changes in the DL module.

# File lib/net/ssh/authentication/pageant.rb, line 254
def self.socket_factory
  if RUBY_VERSION < "1.9"
    Socket
  else
    Socket19
  end
end