[Bug 3956] New: Unnecessary display of "Permanently added '1.2.3.4' (ECDSA) to the list of known hosts

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Apr 30 19:13:11 AEST 2026


https://bugzilla.mindrot.org/show_bug.cgi?id=3956

            Bug ID: 3956
           Summary: Unnecessary display of "Permanently added '1.2.3.4'
                    (ECDSA) to the list of known hosts
           Product: Portable OpenSSH
           Version: 10.0p2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: alanthomasmt at gmail.com

Even when there is no valid user known host file, the above message
states that the hostkey was permanently added to known host file. This
is a bit misleading in my opinion. It would be better not to print this
if the file is /dev/null.

SSH client config:
StrictHostKeyChecking no
UserKnownHostsFile /dev/null

I understand that the write operation was successful and hence this
message, but there are use cases where the ssh client should completely
disable host key add and checks. Alternatively, can something like
"StrictHostKeyChecking disable" be added that will not even bother
adding the hostkey?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list