CPM is not able to manage SSH Key on a unix target server

CPM is not able to manage SSH Key on a unix target server

117
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:04 PM


Symptom


CPM is not able to manage SSH Key on a unix target server. 

Sample CPM debug log

########################################
08/10/2024 03:37:22.571 | ERROR -> BaseAction`1 :: ConnectToMachine -> GotException: Expect.NET.SshKeyAuthenticationException: Permission denied (publickey) ---> Rebex.Net.SftpException: A public key corresponding to the supplied private key was not accepted by the server or the user name is incorrect
########################################



Environment


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

CPM - 12.6

RHEL 8

RHEL 9



Cause


The parameter 'PubkeyAuthentication yes' is not enabled on the target server's sshd_config file.

Sample authentication debug logs from the target server

########################################

Oct 14 19:14:49 target_hostname sshd[xxxxxx]: debug3: mm_answer_keyallowed: publickey authentication: RSA key is not allowed
Oct 14 19:14:49 target_hostname sshd[xxxxxx]: Failed publickey for target_account from CPM_IP_address port xxxxx ssh2: RSA SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

########################################



Resolution


Enable the parameter 'PubkeyAuthentication yes' on the target server's sshd_config file.



Actions
  • Print
  • Copy Link

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