- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
04-24-2024 06:23 AM
Hi All,
We are using the below connection string to connect to the target server using PSMP.
VU@TU@TA@PSMP
The connection string is working fine with the password to connect to the target server.
If we use MFA Caching (PPK key) with the connection string in putty it says, “server refused our key” and asking for a password.
We have set an Authentication Method has SSH Key.
Could anyone please help us with the above issue.
Regards,
Priya
04-24-2024 06:26 AM
I have seen this when the version of OpenSSH is too low:
To use MFA caching, OpenSSH 7.8 and above is required on the PSM for SSH machine. RHEL 7.9 includes an earlier version of OpenSSH. If you are using RHEL 7.9, we recommend that you upgrade to RHEL version 8, which has OpenSSH version 7.8 out of the box to support MFA caching.
04-24-2024 07:12 AM
Hi @Malcolm Murray
We are using RHEL 8.9 version and using the below PPK private key to connect to the server.
If we use MFA Caching (PPK key) with the connection string in putty it says, “server refused our key” and asking for a password
04-24-2024 06:25 PM
Hi @PRIYADHARSHINI NAGARAJAN
would you be able to share a screenshot of MFA Caching settings from Privileged Sessions Management—> Server Settings?
04-24-2024 08:49 PM
Hi,
could you give us how is the key pass through your connection software ? Is it done dynamically with an ssh-agent ?
Regards
04-25-2024 08:00 AM
Hi @Malhar Vora @Nicolas Louis
Please find the attached screenshot and kindly help us on the issue
04-26-2024 02:26 AM
Hi,
from what I see the error is coming from your taget :
-> userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Please try:
add this line in /etc/ssh/sshd_config
PubkeyAcceptedAlgorithms +ssh-rsa
Afterwards, restart the sshd service to make the new settings come into effect.
$ sudo systemctl restart sshd
Regards
04-26-2024 04:13 AM
Hi @Nicolas Louis
Thanks for your response.
We have tried the below line in sshd_config file but getting an error saying bad configuration.
PubkeyAcceptedAlgorithms +ssh-rsa
Please find the error screenshot.
We noticed that we are getting an below error in secure log.
> userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedKeytypes [preauth]
Whether we need to add this line "PubkeyAcceptedKeytypes" in sshd_config file?
Could you please suggest.
Regards,
Priya
04-26-2024 05:56 AM
Hi,
could you give me the OS type and the openssl version running ?
Maybe you can try
PubkeyAcceptedKeyTypes +ssh-rsa
instead of PubkeyAcceptedAlgorithms in the sshd_config.
Could you change and retry ?
Regards,
04-27-2024 03:37 AM
Hi @PRIYADHARSHINI NAGARAJAN
Can you please confirm that the private key file (PPK) is in the correct format for PuTTY?
The PuTTY uses its own proprietary format for SSH keys, so if you’re using an OpenSSH private key format, you’ll need to convert it using PuTTYgen.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

