Class: Net::SSH::Verifiers::NoSaveStrict
- Inherits:
-
Secure
- Object
- Secure
- Net::SSH::Verifiers::NoSaveStrict
- Defined in:
- lib/net/ssh/verifiers/no_save_strict.rb
Overview
This is similar to Net::SSH::Verifiers::Strict, but does not save the host key if it does not already exist in the known hosts file(s), making it ideal for repeat provisions of varied VMs that re-use IP addresses.
It still goes through normal verification for those keys that do exist in the known hosts files, however.
– XXX the inheritance here is correct. Strict inherits from secure, but saves
instead. We're just like strict but we don't save.
++
Instance Method Summary collapse
-
#verify(arguments) ⇒ Object
Verify the connection.
Instance Method Details
#verify(arguments) ⇒ Object
Verify the connection. See NoSaveStrict.
26 27 28 29 30 |
# File 'lib/net/ssh/verifiers/no_save_strict.rb', line 26 def verify(arguments) super rescue HostKeyUnknown return true end |