when invoking KnownHostsCommand to determine the order of host key
authordjm <djm@openbsd.org>
Wed, 13 Dec 2023 03:28:19 +0000 (03:28 +0000)
committerdjm <djm@openbsd.org>
Wed, 13 Dec 2023 03:28:19 +0000 (03:28 +0000)
commit93d7f0fd8d95abd5f8e62406551774857e7015a3
tree86aeb1259990160fbaa4ae066fb150f14777d830
parent9b9980d9ef407862f9e1eb833e0ce4294a928670
when invoking KnownHostsCommand to determine the order of host key
algorithms to request, ensure that the hostname passed to the command
is decorated with the port number for ports other than 22.

This matches the behaviour of KnownHostsCommand when invoked to look
up the actual host key.

bz3643, ok dtucker@
usr.bin/ssh/sshconnect2.c