authenticate (Net::SSH::UserAuth::Methods::PublicKey)

    # File lib/net/ssh/userauth/methods/publickey.rb, line 46
              def authenticate( next_service, username, data={} )
                key_manager = data[:key_manager]
                return false unless key_manager

                key_manager.identities.each do |identity|
                  return true if authenticate_with( identity, next_service,
                    username, key_manager )
                end

                return false

              ensure
                key_manager.finish if key_manager
              end