Bug 1376

Summary: 'ssh-keygen -HF' hashes host,IP together
Product: Portable OpenSSH Reporter: Jan Pechanec <jp>
Component: ssh-keygenAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: djm, dtucker
Priority: P3    
Version: 4.7p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1353    
Attachments:
Description Flags
fix for the bug reported none

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.