[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 14:07:41 AEDT 2021
https://bugzilla.mindrot.org/show_bug.cgi?id=3367
--- Comment #3 from James Z.M. Gao <gaozm55 at gmail.com> ---
thanks very much.
@dtucker another minor issue of the KnownHosts matching of `ssh-keygen
-F` is that 'host' and '[host]:22' are not equivalent.
ssh-keyscan host > k.txt # output: host key-type ...
ssh-keyscan -p 22 host # also output: host key-type ...
ssh-keygen -f k.txt -F host # found hostkey as expected
ssh-keygen -f k.txt -F '[host]:22' # found nothing, whereas we should
also match the same key as previous command
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list