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:
- Connects to the host on port 22.
- Tries the
nonemethod. The host usually rejects this method. This is normal. - Tries the password or private key from your Unix authentication record.
- 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
- Go to VM/VMDR > Scans > Authentication.
- Search for a Unix record for the host, and click Edit.
- On the Login Credentials tab, check the username and password.
- 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
- Use a computer on the same network segment as the scanner.
- Run the following command:
ssh <username>@<target-IP> - 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
- Go to VM/VMDR > Scans > Scans, and click New > Scan.
- Select the host, a scanner appliance, and an option profile that has Unix authentication turned on.
- Click Launch.
- 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.