Class: Net::SSH::Verifiers::Never

Inherits:
Object
  • Object
show all
Defined in:
lib/net/ssh/verifiers/never.rb

Overview

This host key verifier simply allows every key it sees, without any verification. This is simple, but very insecure because it exposes you to MiTM attacks.

Instance Method Summary collapse

Instance Method Details

#verify(arguments) ⇒ Object

Returns true.


10
11
12
# File 'lib/net/ssh/verifiers/never.rb', line 10

def verify(arguments)
  true
end

#verify_signature(&block) ⇒ Object


14
15
16
# File 'lib/net/ssh/verifiers/never.rb', line 14

def verify_signature(&block)
  true
end