PSM: PSM-SSH Auto Logon Sequence

PSM: PSM-SSH Auto Logon Sequence

153
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 15:50 PM


Symptom


When using the PSM-SSH connection component to access a UNIX target, the error presented is PSMSH059E Failed to execute login sequence: Incorrect sequence defined in configuration, or network timeout occurred



Environment


10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7 Privileged Access Manager (PAM, self-hosted) PSM PSM Networking & Connectivity

Cause


It is looking for a prompt for the logon user in the form of [{Username}@{hostname}~]$ (example: [tsawyer@lab-unix3 ~]$). However, the prompt for the logon account is -bash-4.2$. So whenever the auto logon sequence is started, it is failing because it cannot parse the prompt.



Resolution


(The default value is: \[.*\@.* ~]\$ >exec su - {Username} Password:>{Password} )

Change the AutoLogonSequenceWithLogonAccoount in the PSM-SSH connection component (Target Settings -> Client Specific -> AutoLogonSequenceWithLogonAccount) to

 

.*\$ >exec su - {Username}

Password:>{Password}

 

Once the change is made, a restart of the Idira Privileged Session Manager service on ALL PSM is required.

 

The sequence will successfully parse prompts such as -bash-4.2$ and like [{Username}@{hostname}~]$. This is like a 'catch all' of all possible prompts.



Actions
  • Print
  • Copy Link

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