After PSM-SSH session is established, user needs to wait for 30s before they can enter the command
132
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 16:08 PM
Symptom
The privileged accounts are configured with zsh shell (SHELL=/bin/zsh). After the PSM-SSH session is been established, users have to wait for 30 second s to 1 min or so before they can enter the command.
In the component log xxxx.SSH.log we could see below messages
[05/03/2020 | 15:44:32.766546] | :: | PSMIN035I Control character keystroke detected (Character values: [0x1b;]), ignoring [05/03/2020 | 15:44:57.615551] | :: | PSMSH003E PSMSSHClient exception occurred. Reason: 134E The session shell prompt did not match the configuration. This session continued without a detailed audit. (Codes: -1, -1)
Environment
9.10;10.1 PSM server : Windows 2012 R2, PSM version 10.1
Target server: CentOS with zsh installed
Cause
the regex under ShellPromtForAudit could not match the zshell prompt thus the system waited for 30 send for the audit to timeout before it could continue.
Resolution
1 Go to PVWA-->administration-->Connection Components--> find the targeted SSH connector e.g PSM-SSH -->Client Specific--> ShellPromtForAudit
2 Update it to (.*)[#\\$\%\>] (\x1B.{2})*$
3 restart your PSM server
If step 2 doesn't resolve the issue, please change it to
(.*)
and then restart PSM service