Error: Invalid SSH Credentials Authentication Failed
Netwrix Privilege Secure Discovery (formerly SecureONE)
Symptom
When you try to register a Linux endpoint the following error occurs:
Invalid SSH Credentials Authentication Failed
Cause
Windows Command Prompt occurrence: this happens when you try to register a new Linux endpoint and either the Registration account is not on the endpoint in the /etc/sudoers file or the password for that account doesn't match what you are using in the registration process (via the QuickStart or Postman).
Resolution
-
Step 1. Log into the Linux endpoint via SSH with a sudoer's account.
-
Step 2. Confirm the Registration account is within the
/etc/passwdfile (which lists all users that have basic access to the Linux system) with the below command. The output from this command will display the contents of the passwd file, which should have the Registration account listed.cat /etc/passwd-
If the Registration account is not in the output (aka the
/etc/passwdfile), it will need to be created with the command below; replace theREGISTER-ACCOUNTstring with the actual name of the account being used for the one-time registration of systems into Netwrix Privilege Secure Discovery. If it is in the output, continue on to Step 3 and test the password being used.The command may vary depending on the Linux operating system:
sudo useradd REGISTER-ACCOUNTExample: for a user named "secureone" the command would be
sudo useradd secureone -
Once the above
useraddprocess has been completed, set the password for that account with the command below; again replace theREGISTER-ACCOUNTstring with the actual name.The command may vary depending on the Linux operating system:
sudo passwd REGISTER-ACCOUNTExample: for a user named "secureone" the command would be
sudo passwd secureone -
Test the password for the account with the command below. Remember to replace the
REGISTER-ACCOUNTstring with the actual name of the account:su REGISTER-ACCOUNT
-
-
Step 3. Confirm the Registration account is within the
/etc/sudoersfile with the command below. The output from this command will display the contents of the sudoers file, which should have the "registration account" listed:sudo cat /etc/sudoers