How to configure PSMP Agent-Forwarding
101
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:09 PM
Objective
This article outlines the procedure for enabling and using the SSH Agent Forwarding feature Scenario 1. The feature allows secure forwarding of SSH authentication credentials through a jump host (PSMP) to a final target, streamlining access without re-entering credentials.
Environment
Privileged Access Manager (PAM, self-hosted) PSMP
Procedure
Configuration Requirements
-
Enable SSH Agent Forwarding in PSMP:
- Set
PSMAllowSSHAgentForwardingtoYesin the global/platformPSMP-SSH CCparameters.
- Set
-
Verifying Configuration on PSMP-SSH CC ClientApp:
{PSPComponentsFolder}/ssh [-{PSMProtocol}] [{PSMSSHAgentForwardingFlag}] [-p {Port}] [-L {PSMTunnelRandomPort}:{PSMTunnelTargetAddress}:{PSMTunnelTargetPort}] [-R {PSMRemoteTunnelTargetPort}:localhost:{PSMRemoteTunnelRandomPort}] {Username}@{Address} -
Update SSH Server Configuration:
- Ensure the following line is present in
sshd_config:AllowAgentForwarding yes
- Ensure the following line is present in
-
Enable Session Separation.
https://docs.cyberark.com/pam-self-hosted/latest/en/content/pasimp/psm_for_ssh_session_separation.htm
🖥️ Execution Steps on CLI
-
Restart Required Services:
systemctl restart sshd
systemctl restart psmpsrv -
Add SSH Key to Agent:
ssh-add ~/.ssh/<SSH_Key> -
Verify Loaded Keys:
ssh-add -l -
Connect to PSMP with Agent Forwarding:
ssh -A VU@UserTargetAddress@PSMP -
Verify Agent Forwarding on Jump Host:
echo $SSH_AUTH_SOCK -
Connect to Final Target:
The onboarded key from step 2 will be used for the subsequent connection in step 6.