PSMP Agent forwarding not working correctly
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: