Using SSH Key PPK v2 connect to target server, it returns 'No supported authentication methods available' error

Using SSH Key PPK v2 connect to target server, it returns 'No supported authentication methods available' error

163
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 15:58 PM


Symptom


In Secure log on target server.

Sep 23 14:17:36 server01 sshd[54468]: Disconnected from authenticating user username xx.xx.xx.xx port #### [preauth]

Sep 23 14:18:40 server01 sshd[54471]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]

Sep 23 14:18:40 server01 sshd[54471]: error: Received disconnect from xx.xx.xx.xx port ####:14: No supported authentication methods available [preauth]



Environment


11.5;11.6;11.7;12.0;12.1;12.2;12.5;14.2 Privileged Access Manager (PAM, self-hosted) PSM PSM PSM Connection via PVWA

Cause


Misconfigured PubkeyAcceptedKeyTypes parameter in the sshd_config file,



Resolution


In /etc/ssh/sshd_config, add the following if those parameter was not there.

...

PubkeyAuthentication yes

PubkeyAcceptedKeyTypes=+ssh-rsa

After the change, restart the target sshd service

Additionally, you can refer to https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/12.6/en/Content/PASIMP/Configuring-SSH-Key-Authentication-to-Target-Systems.htm for more information.



Actions
  • Print
  • Copy Link

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