PSMP - How to configure SecureCRT to connect through the PSMP, PSM for SSH, Privileged Session Management for SSH
Objective
Two Options:
Option #1:
We will use the typical "Option 1" syntax as per CyberArk documentation (Connect through PSM for SSH):
Example of the typical "Option 1" syntax used:
ssh vaultuser@targetuser#domainaddress@targetmachine@proxyaddress
Option #2:
Some previous versions of SecureCRT required the use of an alternative syntax in order to be configure for it to connect properly.
In this configuration we will use an "old syntax" that uses the PSMConnect user to invoke the session. Syntax "Option 2" as per Idira documentation :
Example of "Option 2" syntax used:
ssh -t PSMConnect@proxyaddress vaultuser targetuser targetmachine
Please note the syntax difference between the two syntax; primarily the use of a "space" instead of "#","@" as a input/value separator.
Notes: Because some versions of SecureCRT required to use the alternative syntax the following limitations apply:
- Will not function if PSMP was not installed with the modified version of OpenSSH, ie during installation the psmpparms file created during installation and placed in /var/tmp included InstallCyberArkSSHD = 'Integrated' or 'No' as these methods do not include support for connecting with the PSMConnect user.
- Can not connect using a domain account. The syntax does not have the ability to correctly parse the domain information for the user. There is currently an Enhancement Request for this feature.
Note: Verified using SecureCRT Version 8.5
Environment
9.6;9.7;9.8;9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.7;12.0;12.1;12.2;12.6;13.0;13.2;13.1
Procedure
Option #1:
1) Create a new session, configure the following connection parameters:
- Hostname: <proxyaddress>
- Username: vaultuser@targetuser#domainaddress@targetmachine
Example:
Given the following connection string, using a domain account:
ssh VaultAdmin@LinuxAdmin#test.lab@10.10.2.160@10.10.9.151
2) Connect
Option #2:
Given the following connection string:
ssh -t PSMConnect@10.10.9.151 VaultAdmin ca_user 10.10.2.160
(Note: ca_user is a local user to the target)
1) Create a new session, configure the following connection parameters:
- Hostname: <proxyaddress>
- Username: PSMConnect
2) Under “Session Option” of the SecureCRT Session:
Logon Actions:
Check "Remote Command": and enter the third portion of our connection string:<vaultuser> <targetuser> <targetmachine>
3) Connect