During the 1st SSH connection with a new Linux server (Ubuntu), I am presented with a key fingerprint in a format such as:
ECDSA key fingerprint is SHA256:Dvj5iH81LekYL2qA6VY1NkzXTB1TSkH+yc3kVclgGBc.
Are you sure you want to continue connecting (yes/no)? yes
When I then want to compare this fingerprint with the fingerprint I can generate myself, I use
ssh-keygen -l -f /etc/ssh/ssh_host_ecdsa_key.pub
Unfortunately, this outputs the fingerprint in a different format, such as:
256 b1:53:22:1c:71:5e:11:f1:6c:a0:97:78:42:17:1b:b0 root@Ubuntu-1404-trusty-64-minimal (ECDSA)
How do I make sure I get the same format in both cases, so I can compare easily?