Page MenuHomeFreeBSD

ssh: canonicize the host name before looking it up in the host file
ClosedPublic

Authored by vangyzen on Jul 15 2015, 8:35 PM.
Tags
None
Referenced Files
F131803080: D3103.diff
Sat, Oct 11, 7:14 AM
Unknown Object (File)
Thu, Oct 2, 5:42 AM
Unknown Object (File)
Thu, Oct 2, 3:07 AM
Unknown Object (File)
Wed, Oct 1, 8:23 PM
Unknown Object (File)
Wed, Oct 1, 7:00 PM
Unknown Object (File)
Wed, Oct 1, 4:57 AM
Unknown Object (File)
Aug 15 2025, 2:47 AM
Unknown Object (File)
Aug 2 2025, 11:14 PM
Subscribers

Details

Summary

Re-apply r99054 by des in 2002. This was accidentally dropped
by the update to OpenSSH 6.5p1 (r261320).

This change is actually taken from r387082 of
ports/security/openssh-portable/files/patch-ssh.c

PR: 198043
Reviewed by: des
Approved by: kib (mentor)
Sponsored by: Dell Inc.
MFC after: 3 days

Test Plan

Before:

rm ~/.ssh/known_hosts
ssh box.example.com
<add key to known_hosts>
ssh box
<ssh asks to very host key>

After:

rm ~/.ssh/known_hosts
ssh box.example.com
<add key to known_hosts>
ssh box
<host key is already in known_hosts>

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

vangyzen retitled this revision from to ssh: canonicize the host name before looking it up in the host file.
vangyzen updated this object.
vangyzen edited the test plan for this revision. (Show Details)
vangyzen added a reviewer: des.
vangyzen added a subscriber: kib.
des edited edge metadata.
This revision is now accepted and ready to land.Jul 16 2015, 5:20 PM
This revision was automatically updated to reflect the committed changes.