# File lib/net/ssh/authentication/methods/publickey.rb, line 16 def authenticate(next_service, username, password=nil) return false unless key_manager key_manager.each_identity do |identity| return true if authenticate_with(identity, next_service, username) end return false end