diff --git a/lib/net/ssh/verifiers/strict.rb b/lib/net/ssh/verifiers/strict.rb index 3580ab71a9..ed7e8abe03 100644 --- a/lib/net/ssh/verifiers/strict.rb +++ b/lib/net/ssh/verifiers/strict.rb @@ -13,6 +13,7 @@ module Net; module SSH; module Verifiers def verify(arguments) options = arguments[:session].options host = options[:host_key_alias] || arguments[:session].host_as_string + matches = [] if options[:config] matches = Net::SSH::KnownHosts.search_for(host, arguments[:session].options) end