SSHKey verification fails with CACPM404E error
113
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 12:57 PM
Symptom
CPM task (Verify/Change/Reconcile) for SSH key account (especially newly created one), an error similar to the following is seen:
CACPM404E Verifying Master Safe: _sshk, Folder: Root, Object: Operating System-UnixSSHKeys-10.1.2.3-keyuser failed (try #0). The Master was disabled because an unrecoverable error was detected. Code: 8034, Error: Execution error. Verify phase - Could not connect to remote machine, username or secret error. More info: DNAPR175E Could not connect with SSH to remote machine 10.1.2.3.. Error code:8034 The CPM is trying to verify this password because its status matches the following search criteria: ResetImmediately.
Environment
9.10;10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM) PAM
CPM
Cause
The ~/.ssh/authorized_keys file does not exist, does not contain the right Public key belongs to the current SSH Private key (~/.ssh/id_rsa) or doesn't have the right permissions.
Resolution
- Verify ~/.ssh/authorized_keys file exists.
- Verify ~/.ssh/authorized_keys file contains the relevant public key ( ~/.ssh/id_rsa.pub). To extract a public key from existing Private key use the following command: ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
- Verify ~/.ssh/authorized_keys file has 600 Unix permissions.
Additional Information
Details
SYMPTOM:CPM task (Verify/Change/Reconcile) for SSH key account (especially newly created one), error similar to the following is seen:
CACPM404E Verifying Master Safe: _sshk, Folder: Root, Object: Operating System-UnixSSHKeys-10.1.2.222-keyuser failed (try #0). The Master was disabled because an unrecoverable error was detected. Code: 8034, Error: Execution error. Verify phase - Could not connect to remote machine, username or secret error. More info: DNAPR175E Could not connect with SSH to remote machine 10.1.2.222.. Error code:8034 The CPM is trying to verify this password because its status matches the following search criteria: ResetImmediately.
PROBLEM:
The ~/.ssh/authorized_keys file does not exist, does not contain the right Public key belongs to the current SSH Private key (~/.ssh/id_rsa) or doesn't have the right permissions.
SOLUTION:
1) Verify ~/.ssh/authorized_keys file exists.
2) Verify ~/.ssh/authorized_keys file contains the relevant public key ( ~/.ssh/id_rsa.pub). To extract a public key from existing Private key use the following command: ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
3) Verify ~/.ssh/authorized_keys file has 600 Unix permissions.
2) Verify ~/.ssh/authorized_keys file contains the relevant public key ( ~/.ssh/id_rsa.pub). To extract a public key from existing Private key use the following command: ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
3) Verify ~/.ssh/authorized_keys file has 600 Unix permissions.