How to enable Reason for Access prompt on native SFTP client through PSM for SSH ?
101
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:08 PM
Objective
How to enable Reason for Access prompt on native SFTP client, such as WinScp or PSFTP , through PSM for SSH (PSMP )?
Environment
10.10;11.1;11;11.2
Procedure
1 PSM for SSH must be installed with InstallCyberArkSSHD = Integrate because InstallCyberArkSSHD = Yes/No does not support Reason for Access for PSMP-SFTP connections
Reference https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/PSSO-PMSP.htm?
2 From PVWA-->Policies-->Master Policies-->enable "Require users to specify reason for access rule" for the target platform
3 Start WinSCP using the following information:
Host name: {PSMP Server Name or IP}
User name: {Vault User}@{Target User}@{Target Server}
This time user will see the reason for access prompt
User name: {Vault User}@{Target User}@{Target Server}
4 If user sees below error message after key in the reason for access
"Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended)."
It can be resolved by modifying the default Shell. Use WinSCP as an example, the setting is under
WinSCP-->Edit the saved site settings-->Advance-->Shell
Different target systems may work with different default Shell.
E.g RHEL7U3 works with Shell= /bin/bash
User can rotate the default shell until they find the working one