Class: Net::SSH::Authentication::Methods::PublickeyTrezor

Inherits:
Publickey
  • Object
show all
Defined in:
lib/net/ssh/authentication/methods/trezor.rb

Overview

Usage:

Net::SSH.start(“host”, “user”, auth_methods: %w, keys: %w) do |ssh|

result = ssh.exec!("ls -l")
puts result

end

Instance Method Summary collapse

Constructor Details

#initialize(session, options = {}) ⇒ PublickeyTrezor

Returns a new instance of PublickeyTrezor.



17
18
19
20
# File 'lib/net/ssh/authentication/methods/trezor.rb', line 17

def initialize(session, options = {})
  super
  @key_manager = Trezor::KeyManager.new(@key_manager.options[:keys])
end