[Bug 3407] ssh-keyscan can't find hostname in 8.9 while finds in 8.8 (keygen or keyscan issue) when port is used
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Thu Mar 17 19:49:30 AEDT 2022
https://bugzilla.mindrot.org/show_bug.cgi?id=3407
--- Comment #3 from Damien Miller <djm at mindrot.org> ---
Ah, it's probably the fix for bug #3367
https://github.com/openssh/openssh-portable/commit/e9c71498a08
Before 8.9, ssh-keyscan would not include the port in the hash as ssh
does. If you use a non-default port now, then it is included in the
hash just as if it was added by "ssh -p24 localhost"
[djm at neko openssh]$ ./ssh-keyscan -Hp 2222 localhost > /tmp/x
# localhost:2222 SSH-2.0-OpenSSH_8.9
[djm at neko openssh]$ ssh-keygen -f /tmp/x -F localhost
[djm at neko openssh]$ ssh-keygen -lf /tmp/x -F "[localhost]:2222"
# Host [localhost]:2222 found: line 1
[localhost]:2222 RSA SHA256:llyZXQpeXErA3hDjef4lD5vVgsKOLEas0tKMrNSheNw
--
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