Created attachment 2320 [details] list known names (if any) for new hostkeys When connecting to a host for which there's no known hostkey, check if the new key has been accepted for other hostnames. This is useful when connecting to a host with a dynamic IP address or multiple names. Patch also sent to openssh-unix-dev in December 2012: http://lists.mindrot.org/pipermail/openssh-unix-dev/2012-December/030905.html
Support for this was added in d5d05cdb3d4 and will be in OpenSSH 8.5: > The authenticity of host 'test (10.0.0.1)' can't be established. > ECDSA key fingerprint is SHA256:milU4MODXm8iJQI18wlsbPG7Yup+34fuNNmV08qDnax. > This host key is known by the following other names/addresses: > ~/.ssh/known_hosts:1: host.example.org,10.0.0.1 > ~/.ssh/known_hosts:2: [hashed name] > ~/.ssh/known_hosts:3: [hashed name] > ~/.ssh/known_hosts:4: host > ~/.ssh/known_hosts:5: [host]:2222 > Are you sure you want to continue connecting (yes/no/[fingerprint])?
closing resolved bugs as of 8.6p1 release