class Net::SSH::Authentication::Methods::Password

def get_max_retries

def get_max_retries
  options = session.transport.options || {}
  result = options[:number_of_password_prompts] || NUMBER_OF_PASSWORD_PROMPTS
  options[:non_interactive] ? 0 : result
end