Bug 1376 - 'ssh-keygen -HF' hashes host,IP together
Summary: 'ssh-keygen -HF' hashes host,IP together
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-keygen (show other bugs)
Version: 4.7p1
Hardware: All All
: P3 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_4_8
  Show dependency treegraph
 
Reported: 2007-10-19 19:03 AEST by Jan Pechanec
Modified: 2008-03-31 15:21 AEDT (History)
2 users (show)

See Also:


Attachments
fix for the bug reported (659 bytes, patch)
2007-10-19 19:03 AEST, Jan Pechanec
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pechanec 2007-10-19 19:03:17 AEST
Created attachment 1363 [details]
fix for the bug reported

the corner case of '-HF' returns a string that is a hash for the whole hostline and not just the host xor IP address which means that usually it will return a hash for "HOST,IP". This will never be matched if manually included into the known_host file since ssh hashes only one of HOST or IP to look for a match in known_hosts file.

patch to fix this is included.
Comment 1 Darren Tucker 2007-12-31 23:47:47 AEDT
Target 4.8
Comment 2 Damien Miller 2008-01-20 09:37:41 AEDT
patch applied - thanks!
Comment 3 Damien Miller 2008-03-31 15:21:52 AEDT
Fix shipped in 4.9/4.9p1 release.