[Bug 3367] ssh-keyscan with non-22 port does not hash correct host

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Dec 3 15:40:05 AEDT 2021


https://bugzilla.mindrot.org/show_bug.cgi?id=3367

--- Comment #5 from James Z.M. Gao <gaozm55 at gmail.com> ---
yes, '[host]:22' should not be output to knownhosts. For matching a
host, the `hostport` in ssh-keygen should also remove the default 22
port, that is '[host]:22' --> 'host'. Then the matching time remain the
same, in the mean while the matching logic are consistent with
generating.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list