[Bug 3003] New: [PATCH] ssh-keygen does not print ASCII art fingerprint of knonw_hosts entry
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Sun May 5 08:56:26 AEST 2019
https://bugzilla.mindrot.org/show_bug.cgi?id=3003
Bug ID: 3003
Summary: [PATCH] ssh-keygen does not print ASCII art
fingerprint of knonw_hosts entry
Product: Portable OpenSSH
Version: 8.0p1
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5
Component: ssh-keygen
Assignee: unassigned-bugs at mindrot.org
Reporter: blaubosch at gmail.com
Created attachment 3274
--> https://bugzilla.mindrot.org/attachment.cgi?id=3274&action=edit
patch against current CVS version
ssh-keygen -l -f keyfile prints the fingerprint of a public key.
Combining the -l switch with -v additionally prints the key's "ASCII
art" representation, which is visually easier to compare in case the
key's fingerprint needs to be verified manually.
ssh-keygen -F host can be used to search the known_hosts file for a
host's key and adding -l prints the key's fingerprint. But combining
the -l switch with -v to get the ASCII art representation does not work
in this context; the source code makes no attempt to generate or print
the ASCII art fingerprint of the knonw_hosts key. This seems to be a
bug.
Attached is a patch that should fix this (I just copied the ASCII art
printing code from fingerprint_one_key() function used by
do_fingerpint(), and added a missing NULL check that was present
there.)
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list