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.



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

def verify(arguments)
  true
end

#verify_signature(&block) ⇒ Object



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

def verify_signature(&block)
  true
end