PSMP - Ignoring input due to no shell detection
Symptom
When connecting to a target through a PSMP session and the target uses a none default shell prompt, the input may not be captured.
Similar errors are seen in the PSOpenSSH.log:
Ignoring input due to no shell detection [Input: d]
Commands Access Control HandleInput-WaitingForKeyStrokes last line output
Ignoring input due to no shell detection [Input: f]
Commands Access Control HandleInput-WaitingForKeyStrokes last line output
Ignoring input due to no shell detection [Input: s]
Commands Access Control HandleInput-WaitingForKeyStrokes last line output
Environment
12.0;12.1;12.2 Privileged Access Manager (PAM, self-hosted) PSMP PSMP
Cause
Within the PSOpenSSH.log.txt the following entry can be seen:
Commands Access Control configured prompt: [(.*)[>#\$]$]
This log entry would indicate it is pulling the default regex configuration for the Command Access Shell Prompt.
Default Regex:
"[(.*)[>#\$]$]"
This is not the same as the ShellPromptForAudit regex under the connection component. Often this is mistaken and updated to correspond with the none default shell prompt.
For example, the ShellPromptForAudit under the PSMP-SSH connection component has been updated to include the right Regex but the error is still occurring.
Resolution
Since version 11.5 Idira has updated the Audit Servers and it is now linked to the Commands Access Control ShellPrompt value.
This value is always active even when Commands Access Control is disabled.
You will need to amend the "ShellPrompt" Regex to include the correct values.
- PVWA > Administration > Options > Privileged Session Manager > General Settings > Connection Client Settings > Capabilities > Command Access Control > ShellPrompt
- Update the Regex string so it matches with the none default ShellPrompt
- Apply the change
This will also need to be added as a "Supported Capabilities" under the connection component ID.
- PVWA > Administration > Options > Connection Components > CC in question > Target Settings
- Right click on "Supported Capabilities" and select new parameter
- ID = CommandsAccessControl
- Apply the change
This can also be set at the platform level.
Please follow the link below for platform level configuration settings.
https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/Configuring-SSH-Commands-Access-Control-in-PSMP.htm#Commandaccesscontrol
Note: for 12.2.5 and above:
-
The PSM for SSH Client now respects the ShellPromptForAudit parameter