Issue with PSMP MFA caching (ppk key)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue with PSMP MFA caching (ppk key)

L2 Linker

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

10 REPLIES 10

L7 Applicator

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.

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

Field_Content_versions_oct20__068Ht00000UIeH9IAL.png

L7 Applicator

Hi @PRIYADHARSHINI NAGARAJAN​ 

 

would you be able to share a screenshot of MFA Caching settings from Privileged Sessions Management—> Server Settings?

 

 

L4 Transporter

Hi,

could you give us how is the key pass through your connection software ? Is it done dynamically with an ssh-agent ?

Regards

L2 Linker

Hi @Malhar Vora​ @Nicolas Louis​ 

Please find the attached screenshot and kindly help us on the issue

Field_Content_versions_oct20__068Ht00000UIiG0IAL.pngField_Content_versions_oct20__068Ht00000UIiGeIAL.pngField_Content_versions_oct20__068Ht00000UIiHwIAL.png

L4 Transporter

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

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.

Field_Content_versions_oct20__068Ht00000UIlG0IAL.pngWe 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

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,

L5 Sessionator

Why can’t you use open ssh key instead of pem key?

syntax will be for this as

ssh -i key.openssh U@TU@TA@PSMP

L7 Applicator

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.

  • 1134 Views
  • 10 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!