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
Unknown Object (File)
Nov 25 2024, 5:01 PM
Unknown Object (File)
Nov 25 2024, 5:01 PM
Unknown Object (File)
Nov 25 2024, 5:00 PM
Unknown Object (File)
Nov 25 2024, 4:41 PM
Unknown Object (File)
Oct 22 2024, 7:42 AM
Unknown Object (File)
Oct 22 2024, 7:42 AM
Unknown Object (File)
Oct 22 2024, 7:42 AM
Unknown Object (File)
Oct 22 2024, 7:31 AM
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
Lint Not Applicable
Unit
Tests Not Applicable

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.