Not able to log in via SSH keys to PSMP server: user is prompted for password
145
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 12:57 PM
Symptom
When logging into a PSMP server using a maintenance account with an SSH key, the SSH key is not recongized and the user is prompted for a password. The following appears in the PSMPconsole log:
Dec 5 09:07:42 ch3pr018127 sshd[29214]: PSPSD100I Checking if the public key is allowed: type=RSA, fingerprint=<fingerprint>
Dec 5 09:07:42 ch3pr018127 sshd[29214]: PSPSD102I Public key is not allowed: type=RSA, fingerprint=<fingerprint>
Environment
11.3;11.4;11.5;11.6;11.7;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSMP PSMP
- InstallCyberArkSSHD=Yes
- InstallCyberArkSSHD=Integrated
Cause
PSMP user is not listed as a maintenance user in sshd.config
Resolution
== InstallCyberArkSSHD=Yes ==
Add the user to the PSMP_maintenanceusers parameter in SSHD_config by doing the following:
1. In the /etc/ssh directory, open the sshd_config configuration file for editing.
2. Add the following parameter to the file:
PSMP_MaintenanceUsers <username>,<username>
Note: You can either set specific usernames or use '*' at the beginning and/or the end
of the username string.
This example will allow the following administrative users: user1, all users that
end with "user2", all users that starts with "user3" and all users that include
"user4".
PSMP_MaintenanceUsers user1,*user2,user3*,*user4*
3. Save the changes and close the sshd_config configuration file.
4. Restart the sshd service for these changes to take affect.
== InstallCyberArkSSHD=Integrated ==
- In /etc/ssh/sshd_config, in the SSHD configuration file, add the following parameter:
AllowGroups PSMConnectUsers <MaintenanceGroupName1>..<MaintenanceGroupNameN>
Note: Prior to version 9.3, the only users that can log in to the PSMP Server are ROOT and PROXYMNG<X> users.
Where X = <0-9>
Note: DSA keys are not supported in openSSH 7.0 and above and may be blocked by PSMP's hardening.
Issue / Details
Additional Information
Details
SYMPTOM: -
When logging into a PSMP server using a maintenance account with an SSH key, the SSH key is not recongized and the user is prompted for a password. The following appears in the PSMPconsole log:
Dec 5 09:07:42 ch3pr018127 sshd[29214]: PSPSD100I Checking if the public key is allowed: type=RSA, fingerprint=<fingerprint>
Dec 5 09:07:42 ch3pr018127 sshd[29214]: PSPSD102I Public key is not allowed: type=RSA, fingerprint=<fingerprint>
Dec 5 09:07:42 ch3pr018127 sshd[29214]: PSPSD102I Public key is not allowed: type=RSA, fingerprint=<fingerprint>
SOLUTION: -
Add the user to the PSMP_maintenanceusers parameter in SSHD_config by doing the following:
1. In the /etc/ssh directory, open the sshd_config configuration file for editing.
2. Add the following parameter to the file:
PSMP_MaintenanceUsers <username>,<username>
Note: You can either set specific usernames or use '*' at the beginning and/or the end
of the username string.
This example will allow the following administrative users: user1, all users that
end with "user2", all users that starts with "user3" and all users that include
"user4".
PSMP_MaintenanceUsers user1,*user2,user3*,*user4*
3. Save the changes and close the sshd_config configuration file.
4. Restart the sshd service for these changes to take affect.
Note: Prior to version 9.3, the only users that can log in to the PSMP Server are ROOT and PROXYMNG<X> users.
Where X = <0-9>
Add the user to the PSMP_maintenanceusers parameter in SSHD_config by doing the following:
1. In the /etc/ssh directory, open the sshd_config configuration file for editing.
2. Add the following parameter to the file:
PSMP_MaintenanceUsers <username>,<username>
Note: You can either set specific usernames or use '*' at the beginning and/or the end
of the username string.
This example will allow the following administrative users: user1, all users that
end with "user2", all users that starts with "user3" and all users that include
"user4".
PSMP_MaintenanceUsers user1,*user2,user3*,*user4*
3. Save the changes and close the sshd_config configuration file.
4. Restart the sshd service for these changes to take affect.
Note: Prior to version 9.3, the only users that can log in to the PSMP Server are ROOT and PROXYMNG<X> users.
Where X = <0-9>
Note: DSA keys are not supported in openSSH 7.0 and above and may be blocked by PSMP's hardening.