Troubleshoot Unix Authentication Failures (QID 105053)

QID 105053 means that the scanner cannot sign in to your Unix or Linux host over SSH. Without a sign-in, the scan runs only unauthenticated checks, and your results are incomplete. Refer to this topic to find the cause and fix the problem.

Problem

Your scan reports QID 105053: Unix Authentication Failed. The Results section of the QID shows messages similar to the following:

QID 105053 Results

+0:00:00 SSH: Authentication mode 'none' rejected by target with a 'failure' response code
+0:00:00 SSH: This is expected behavior for the 'none' authentication mode and does not indicate an error
+0:00:03 SSH: Authentication mode 'password' rejected by target with a 'failure' response code
+0:00:03 SSH: This usually means that the credentials were incorrect
+0:00:03 SSH: All SSH authentication attempts have failed
+0:00:03 SSH: SSH authentication failed (diag=4)

What the Messages Mean

Message Meaning
Authentication mode 'none' rejected This is expected. SSH always tries this method first. It is not an error.
Authentication mode 'password' rejected A username or password is incorrect, or the host does not allow password sign-in over SSH.
SSH authentication failed (diag=4) The sign-in failed. Diagnostic code 4 means a general SSH authentication failure.

Cause

The scanner tries several sign-in methods. QID 105053 appears when all of them fail.

The scanner signs in to your host as follows:

  1. Connects to the host on port 22.
  2. Tries the none method. The host usually rejects this method. This is normal.
  3. Tries the password or private key from your Unix authentication record.
  4. Runs the authenticated checks if the sign-in succeeds.

If all methods fail, the scan reports QID 105053 and skips the authenticated checks.

Solution

Complete the following steps:

Step 1: Check Your Credentials

  1. Go to VM/VMDR > Scans > Authentication.
  2. Search for a Unix record for the host, and click Edit.
  3. On the Login Credentials tab, check the username and password.
  4. Click Save.

Also ensure that the account has shell access and is not expired or locked.

Step 2: Check Network Access

Ensure that the scanner can reach the host on port 22. Check for firewalls, proxies, or network segmentation that block SSH traffic.

Step 3: Test the Sign-in Manually

  1. Use a computer on the same network segment as the scanner.
  2. Run the following command:
    ssh <username>@<target-IP>
  3. Sign in with the credentials from your authentication record.

If you can't sign in, fix the account or the SSH settings on the host.

Step 4: Scan Again

  1. Go to VM/VMDR > Scans > Scans, and click New > Scan.
  2. Select the host, a scanner appliance, and an option profile that has Unix authentication turned on.
  3. Click Launch.
  4. When the scan finishes, check that QID 105053 no longer appears for the host.

For more information, see How to Verify Authentication for Your Scans.

If the Problem Continues

  • Check the SSH security settings on the host. Some settings block automated sign-ins.
  • Use only one active authentication record for each host. Multiple records can conflict.
  • Contact Qualys Support and share your latest scan results. For more information, refer to Windows/Unix Authentication Failure.

Related Topics