PSM - SSH Shell prompt does not match the configuration

PSM - SSH Shell prompt does not match the configuration

115
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 15:51 PM


Symptom


When user attempts to connect via PSM-SSH to the target server, the screen hangs and disconnects with the following error message:
 
"Mandatory commands access control could not be enforced because the shell prompt does not match the configuration.
The session will be disconnected. Contact your system administrator."


image.png


The SSH Session log shows the following lines:
PSMSH114I Commands Access Control capability configuration parameter [ShellPrompt] set to [(.*)[>#\\$]$]
PSMSH003E PSMSSHClient exception occurred. Reason: 132E Mandatory Commands Access Control could not be enforced because the shell prompt does not match the configuration. (Codes: -1, -1)
PSMPR077I Commands Access Control client is sending an error message : [132E Mandatory Commands Access Control could not be enforced because the shell prompt does not match the configuration.]



 


Environment


10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;14.2

Cause


By default the parameter [ShellPrompt] is set to  [(.*)[>#\\$]$]

And PSM is expecting to receive such parameter to continue.


Resolution


Go to the Platform:

 "UI & Workflows" -> Privileged Session Management -> Internal Capability Settings (if it doesn't exist, add it by right-clicking the previous sub-menu) -> Commands Access Control (if it doesn't exist, create it) -> Edit the "ShellPrompt" parameter accordingly.
 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000logCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail