How to configure PSMP Agent-Forwarding

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

  1. Enable SSH Agent Forwarding in PSMP:

    • Set PSMAllowSSHAgentForwarding to Yes in the global/platform PSMP-SSH CC parameters.
  2. Verifying Configuration on PSMP-SSH CC ClientApp:

    {PSPComponentsFolder}/ssh [-{PSMProtocol}] [{PSMSSHAgentForwardingFlag}] [-p {Port}] [-L {PSMTunnelRandomPort}:{PSMTunnelTargetAddress}:{PSMTunnelTargetPort}] [-R {PSMRemoteTunnelTargetPort}:localhost:{PSMRemoteTunnelRandomPort}] {Username}@{Address}
  3. Update SSH Server Configuration:

    • Ensure the following line is present in sshd_config:
      AllowAgentForwarding yes
      
  4. Enable Session Separation.
    https://docs.cyberark.com/pam-self-hosted/latest/en/content/pasimp/psm_for_ssh_session_separation.htm


🖥️ Execution Steps on CLI

  1. Restart Required Services:

    systemctl restart sshd
    systemctl restart psmpsrv
  2. Add SSH Key to Agent:

    ssh-add ~/.ssh/<SSH_Key>
  3. Verify Loaded Keys:

    ssh-add -l
  4. Connect to PSMP with Agent Forwarding:

    ssh -A VU@UserTargetAddress@PSMP
  5. Verify Agent Forwarding on Jump Host:

    echo $SSH_AUTH_SOCK
  6. Connect to Final Target:

     
     The onboarded key from step 2 will be used for the subsequent connection in step 6.


Actions
  • Print
  • Copy Link

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