Warning: Permanently added <User> (XXX) to the list of known hosts. Always showing

Warning: Permanently added <User> (XXX) to the list of known hosts. Always showing

163
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 16:12 PM


Symptom


"Warning: Permanently added <User> (XXX) to the list of known hosts." Pops on every SSH/Putty connection.

Environment


12.6 Privileged Access Manager (PAM, self-hosted) PSMP

Cause


It's related to the ssh configuration "UserKnownHostsFile=/dev/null" which dumps the known host file, and therefore the user is always considered a new host.

Resolution


As a workaround, simply replace the clientapp parameter at the options of the problematic connection component with the following one:

{PSPComponentsFolder}/ssh -o "StrictHostKeyChecking no" -o "UserKnownHostsFile=/dev/null" -o "CheckHostIP=no" -o "LogLevel=ERROR" [-{PSMProtocol}] [-p {Port}] [-L {PSMTunnelRandomPort}:127.0.0.1:{PSMTunnelTargetPort}] {Username}@{Address}

For reference, the fixed line added is simply "-o "LogLevel=ERROR"".

What it does is simply disregard the warning of the new host.


Actions
  • Print
  • Copy Link

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