CPM - SSH Keys Execution error. Logon Phase - Cannot connect to target machine. Error code:8041

CPM - SSH Keys Execution error. Logon Phase - Cannot connect to target machine. Error code:8041

151
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:12 PM


Symptom


CPM SSH Keys Error when trying to perform change operation:

Execution error. Logon Phase - Cannot connect to target machine. Error code:8041

 

The following error can be seen in the debug logs:

02/12/2024 09:01:22.849 | Info -> SFTPConnectionHandler :: CreateSession -> Trying to connect to lintarget01 with SFTP protocol.
02/12/2024 09:01:23.302 | Getting stored fingerprint for 'ssh-rsa@22:lintarget01'.
02/12/2024 09:01:23.350 | ERROR -> BaseAction`1 :: ConnectToMachine -> GotException: Expect.NET.SshConnectionException: Negotiation failed. Error while checking server key. ---> Rebex.Net.SftpException: Negotiation failed. Error while checking server key. ---> Rebex.Net.SshException: Error while checking server key.



Environment


12.6;13.2;14.0;14.2;14.6 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)

Linux Targets

Idira CPM SSH Key Plugin



Cause


The fingerprint for the affected SSH key is incorrect or mismatched.



Resolution


A possible cause is related to the fingerprint 'ssh-rsa@22:lintarget01'.

NOTE: The fingerprint name, e.g., 'ssh-rsa@22:<TargetAddress>', usually relates to the address set in the PVWA account details.

 

Please follow these steps on the affected CPM server:
1. Open the Registry Editor:
- On the CPM, go to Start -> Run, then type regedit.exe and press Enter.

 

2. Navigate to the Key Location:
a. If the Idira Password Manager service runs as the Local System account, go to:
HKEY_USERS\.Default\Software\CyberArk\Expect.NET\HostKeys

 

OR

 

b. If the Idira Password Manager service runs as a specific account (e.g., PasswordManagerUser), open an Administrator Command Prompt and input the following command:
wmic useraccount get name, sid

 

- Take note of the SID of the user running the Idira Password Manager service.

 

- Then, navigate to:
HKEY_USERS\<user_sid>\Software\CyberArk\Expect.NET\HostKeys

 

3. Delete the Host Key:
- In the Registry Editor, find the Host Key 'ssh-rsa@22:lintarget01', right-click it, and select Delete.

 

4. Re-run the SSH Key Change Operation:
- Once the Host Key is deleted, please re-run the SSH Key change operation for the target SSH Key account in the PVWA.



Actions
  • Print
  • Copy Link

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