]> git.proxmox.com Git - mirror_qemu.git/commit
block: print the server key type and fingerprint on failure
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 13 Sep 2021 16:59:00 +0000 (17:59 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 16 Feb 2022 14:34:16 +0000 (14:34 +0000)
commite3296cc796aeaf319f3ed4e064ec309baf5e4da4
tree01f83df17d420a0128a22b2157ee0ce7acad559f
parentea0f60e6f274ca8ecb45296272b2561e088b6fc8
block: print the server key type and fingerprint on failure

When validating the server key fingerprint fails, it is difficult for
the user to know what they got wrong. The fingerprint accepted by QEMU
is received in a different format than OpenSSH displays. There can also
be keys for multiple different ciphers in known_hosts. It may not be
obvious which cipher QEMU will use and whether it will be the same
as OpenSSH. Address this by printing the server key type and its
corresponding fingerprint in the format QEMU accepts.

Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
block/ssh.c