PSMP connection closed with error of no matching host key type found

PSMP connection closed with error of no matching host key type found

283
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:12 PM


Symptom


PSMP connection closed with error of no matching host key type found.



Environment


13.0;13.2;14.4 Privileged Access Manager (PAM, self-hosted) PSMP

PSMP



Cause


SSH-RSA key type is deprecated with openssh 7 and 8. If using old version of OS and openssh which is only support ssh-rsa, it needs to be added to use it from PSMP server side.



Resolution


Method 1: Modify ssh_config on the PSMP Server

Add the following lines to the ssh_config file located in /etc/ssh on the PSMP server, based on the key types mentioned in the error:

PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa,ssh-dss

Method 2: Create a Configuration File for the PSMP Shadow User

  1. Create the configuration file and adjust its permissions. If you are using Red Hat 7.9 on the PSMP server, chmod 600 should work:
touch /home/PSMShadowUser/.ssh/config
chmod 600 /home/PSMShadowUser/.ssh/config
chown PSMShadowUser:PSMShadowUsers /home/PSMShadowUser/.ssh/config
  1. Add the following lines to the configuration file:
PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa,ssh-dss

Method 3: Update the PSMP SSH String from PVWA

Update the PSMP SSH string from PVWA to include the key type mentioned in the error when connecting, as shown below:

{PSPComponentsFolder}/ssh -o HostKeyAlgorithms=+ssh-rsa,ssh-dss -o PubkeyAcceptedAlgorithms=+ssh-rsa [-p {Port}] [-L {PSMTunnelRandomPort}:127.0.0.1:{PSMTunnelTargetPort}] {Username}@{Address}

 



Actions
  • Print
  • Copy Link

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