Class: Net::SSH::Verifiers::Lenient

Inherits:
Strict show all
Defined in:
lib/net/ssh/verifiers/lenient.rb

Overview

Basically the same as the Strict verifier, but does not try to actually verify a connection if the server is the localhost and the port is a nonstandard port number. Those two conditions will typically mean the connection is being tunnelled through a forwarded port, so the known-hosts file will not be helpful (in general).

Instance Method Summary collapse

Instance Method Details

#verify(arguments) ⇒ Object

Tries to determine if the connection is being tunnelled, and if so, returns true. Otherwise, performs the standard strict verification.


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

def verify(arguments)
  return true if tunnelled?(arguments)
  super
end