Class: Net::SSH::Verifiers::AcceptNewOrLocalTunnel
- Defined in:
- lib/net/ssh/verifiers/accept_new_or_local_tunnel.rb
Overview
Basically the same as the AcceptNew 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
-
#verify(arguments) ⇒ Object
Tries to determine if the connection is being tunnelled, and if so, returns true.
Methods inherited from AcceptNew
Methods inherited from Always
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.
14 15 16 17 18 |
# File 'lib/net/ssh/verifiers/accept_new_or_local_tunnel.rb', line 14 def verify(arguments) return true if tunnelled?(arguments) super end |