[Bug 1544] ssh-keygen -l on known_hosts file does not display hostnames for lines with comments

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Jan 23 19:24:21 AEDT 2019


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

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|REOPENED                    |RESOLVED

--- Comment #28 from Damien Miller <djm at mindrot.org> ---
I don't think further progress is really possible here - "ssh-keygen
-l" has to support both known_hosts and authorized_keys files, and the
default case for known_hosts has no comments.

I'd suggest the workaround I mentioned in 26: if you prefix your
comments with '#' characters then ssh-keygen will ignore them.

Feel free to reopen if you have a better idea

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list