Method: Net::SSH::Authentication::KeyManager#initialize

Defined in:
lib/net/ssh/authentication/key_manager.rb

#initialize(logger, options = {}) ⇒ KeyManager

Create a new KeyManager. By default, the manager will use the ssh-agent if it is running and the :use_agent option is not false.



42
43
44
45
46
47
48
49
50
# File 'lib/net/ssh/authentication/key_manager.rb', line 42

def initialize(logger, options={})
  self.logger = logger
  @key_files = []
  @key_data = []
  @use_agent = options[:use_agent] != false
  @known_identities = {}
  @agent = nil
  @options = options
end