# File lib/net/ssh/userauth/userkeys.rb, line 154 def host_identities identities = [] @known_host_identities = Hash.new @host_key_files.each do |file| if @key_existence_tester.readable?( file ) begin key = @keys.load_public_key( file + ".pub" ) identities.push key @known_host_identities[ key ] = { :from => :file, :file => file } rescue Exception => e @log.warn "could not load public host key file " + "'#{file}.pub' (#{e.message} [#{e.class}])" if @log.warn? end end end identities end