CPM - SSH Fingerprint Mismatch

CPM - SSH Fingerprint Mismatch

537
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:08 PM


Symptom


 

When the CPM tries to manage an account via an SSH connection to the target device, there's a failure to successfully establish a connection to a given target.  This issue can occur using any of the *nix-based CPM plugins.  Various possible error messages in both the pm and debug logs could occur, including:

 

• Error: Invalid prompt or did not receive any prompt. State: "StartSessionSSH". Error code: 7001.
• Error: An established connection was aborted by the server ---> Renci.SshNet.Common.SshConnectionException: An established connection was aborted by the server.
• Operation on remote machine on password object Safe: <safe_name>, Folder: Root, Object: <object_name> failed (try #0) with the following error: Execution error. EXT01::Fingerprint mismatch for 'ssh-ed25519@<IP_address>'. Error code:9007
• Expect.NET.FingerPrintMismatchException: Fingerprint mismatch for 'ssh-ed25519@22:<FQDN>'.

In a PuTTY connection attempt from the CPM to the target, you may see an error such as "WARNING - POTENTIAL SECURITY BREACH!  The server's host key does not match the one PuTTY has cached in the registry", or something similar.



Environment


14.2;14.1 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)

 

CPM
*Nix Target
SSH Connection

 



Cause


 

As the error suggests, the cached/stored key in the Windows registry on the CPM does not match the key provided from the target.  This can occur after situations such as a manual change to the targets' key or after system maintenance/patching.

By default, the UnixviaSSH and UnixviaSSHKeys plugins, do not allow for automatic acceptance of new SSH keys.  This is by design, as it is a security concern, and could be a sign that there may be a security breach.
 



Resolution


 

Method 1: Open PuTTY on the CPM, as Administrator, and SSH to the target device with the account in question.  If and when you're prompted to accept the new key, do so.  In doing so, this should update/store the new key in the Windows Registry.  However, if this does not resolve the issue, proceed with Method 2.

Method 2: Delete the key from the Windows Registry.  To do so:

 
A) On the CPM, go to the Registry: Start -> Run -> regedit.exe
Note: When working with Windows Registry, please always backup the keys prior to modifying them. 

B) Because the key may be stored in multiple locations (for example, the key may be cached in a node under the HKEY_CURRENT_USER hive, but also cached in one or more nodes under the HKEY_USERS hive), click on Computer to highlight it, and then press Ctrl+F (or Edit -> Find) and enter the hostname/IP of the key.

Note - While the format of the key is generally 'ssh-<encryption_method>@port:<hostname/IP>', it is suggested to search only by the hostname/IP of the key.  The reason for this is that the key could be cached multiple times, with varying encryption methods.  Not only does this cause extra, unneeded entries in the Registry, but it can also be the culprit for the exact issue we are trying to resolve.

C) Once the key has been found, on the right hand side of the registry window, right-click and delete the key for that particular target.  Then, run another Find and attempt to locate additional entries of the key.  Repeat this process until there are no remaining entries in the Registry.

 

Method 3: Enable or disable a platform to override a fingerprint, or temporarily override a target's fingerprint.  For more information on these two options, please review the documentation HERE. 

 



Actions
  • Print
  • Copy Link

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