PSMP Agent forwarding not working correctly

PSMP Agent forwarding not working correctly

111
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 13:04 PM


Symptom


The connection fails with WinSCP, and when trying to upload files, they get stuck at 100%.



Environment


14.6 Privileged Access Manager (PAM, self-hosted) PSMP

PSMP SH 14.6

OS - Red Hat Enterprise Linux 9.6



Cause


The "ConnectionAuthSock" is not set in the session parameters and remains empty.

We can verify this by searching for the following log in the PSMPTrace.log file:

"GRPC Session Configurations are:"

Below that parameter, there should be a JSON with the session attributes ("session_attributes").

It may be split into pieces, so it's not always possible to find a specific attribute directly, but it should contain the parameter "ConnectionAuthSock".

If it is empty, it will appear as - "ConnectionAuthSock":""

An empty "ConnectionAuthSock" in the logs means that the customer didn't actually enable agent forwarding from the client level.



Resolution


This parameter is set based on the SSH_AUTH_SOCK environment variable, which should be set after the sshd server detects a connection with agent forwarding.

For an SSH connection from the console, we need to use the "-A" option (with the key added to the agent).

For example:

sftp -A vault_user@target_user@target_address@psmp_address

Or for a domain:

sftp -A vault_user@target_user#Domain@target_address@psmp_address

The WinSCP configurations should be as follows:






Actions
  • Print
  • Copy Link

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