DNA - DNAPR188E Timeout occurred while waiting for user prompt
Symptom
In the Machine Logs, you will see the following error:
DNAPR188E Timeout occurred while waiting for user prompt. Recommended Action: Close the DNA, increase the timeout interval by changing the SSHExpectInputTimeoutInSeconds parameter and restart the DNA. If the problem persists, check the troubleshooting section in the DNA documentation. Shell output:
tset: unknown terminal type unknown
Terminal type? tset: unknown terminal type echo 'Detecting User Prompt'
Terminal type?
Environment
Discovery and Audit (DNA) DNA
Unix/Linux
Cause
DNA is opening an SSH connection to the target machine and being presented with prompt to set the TERM value and because DNA is not able to set it - we are being returned a message that the terminal type is unknown and the ultimately timing out because DNA does not know how to handle this prompt or return value.
In the past, we have noticed that TMUX may be present on the target server and if so, introduces a lot of control characters in the prompts returned from the target system, so it is very likely that the existing prompts file will not function with TMUX, until it is officially supported by CyberArk. For SSH connections, the problem appears to be that TMUX is expecting a TERM to be set and will not work if it is not passed by the SSH client or defined some other way on the target shell. Even if the SSH connection is successful, DNA will fail with the error previously mentioned as the underlying SSH framework/library does not support TMUX at this time.
Please be aware that this error can also be caused by other customized configuration that is setup on the target machine as well if it expects a TERM value to be set.
Resolution
Option #1: Define a default value for TERM on the target machine
With this option, both plink and Renci SSH.net were able to successfully connect. On the target system define a default value for TERM.
Edit: (/etc/environment)
Add: TERM="xterm"
Option #2: Remove/revert the customizations and go back to stock settings on your flavor of Unix/Linux
This option may be more difficult or not possible but if you revert back to stock settings the DNA scan should work fine.