This file is indexed.

/usr/lib/ruby/vendor_ruby/net/ssh/authentication/methods/none.rb is in ruby-net-ssh 1:2.6.8-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'net/ssh/errors'
require 'net/ssh/authentication/methods/abstract'

module Net
  module SSH
    module Authentication
      module Methods

        # Implements the "none" SSH authentication method.
        class None < Abstract
          # Attempt to authenticate as "none"
          def authenticate(next_service, user="", password="")
            send_message(userauth_request(user, next_service, "none")) 
            message = session.next_message
            
            case message.type
              when USERAUTH_SUCCESS
                debug { "none succeeded" }
                return true
              when USERAUTH_FAILURE
                debug { "none failed" }
              
                raise Net::SSH::Authentication::DisallowedMethod unless
                  message[:authentications].split(/,/).include? 'none'
              
                return false
              else
                raise Net::SSH::Exception, "unexpected reply to USERAUTH_REQUEST: #{message.type} (#{message.inspect})"
            end   
            
          end
        end

      end
    end
  end
end