I added an ED25519 public key to my account on gitlab.com
. I then set up my .ssh/config
to use the private key for Host gitlab.com
:
Host gitlab.com gitlab.*.com
User git
IdentityFile ~/.ssh/gitlab_ed25519
When I do a git fetch
, I am presented with the fingerprint of the key:
The authenticity of host 'gitlab.com (35.231.145.151)' can't be established.
ECDSA key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
I then attempted to verify this matches the public key on my machine:
$ ssh-keygen -lf ~/.ssh/gitlab_ed25519.pub
256 SHA256:Gc/kdTZNJJ0AkdRuZmXOnZw77mS2+osIHQd0pRwJxZA comment (ED25519)
These don't match. Does it matter that, even though I added an Ed25519 key on gitlab.com
, that their SSH server is still reporting a fingerprint for an ECDSA key? Shouldn't it say that the fingerprint is from ED25519 instead? What am I doing wrong? Why do the fingerprints not match?