DMIDECODE or any Sudo commands will fail with Permission denied or No credential found for types [SSH Password,SSH Private Key]
you can find the following error messages from the mid server log
08/29/18 11:50:23 (768) Worker-Interactive:SSHCommand DEBUG: SSHCommand: No credential found for types [SSH Password,SSH Private Key]
08/29/18 11:50:23 (768) Worker-Interactive:SSHCommand DEBUG: Queuing SSHCommand dmidecode; echo dummy > /dev/null
- User is not configured to run sudo -l on the target.
- If the command we are executing is privileged i.e., it needs a sudo, we run a sudo -l along with the command we are executing.
- We run sudo -l to list the commands that a user can run and parse the output using regex to find the scope of the sudo.
- If the user cannot run sudo -l, we will never be able to determine the scope of the command and the probe fails if the following mid server property is not added "mid.ssh.disable_privilege_check".
Provide proper permissions for the Discovery user to run sudo -l command.
add the mid parameter "mid.ssh.disable_privilege_check" to disable running sudo -l.