Getting the SSH Key Fingerprint to check against the fingerprints listed in the Unifi Controller

When you upload a SSH…

Login

Blog History

When you upload a SSH public key to a Unifi Controller it identifies the key by a fingerprint:

I wanted to know which key I was using and wanted to check my local ssh key fingerprints against the one listed in the controller but found they didn't match

The reason is ssh-keygen outputs a SHA256 fingerprint but the Unifi Controller displays an MD5 fingerprint.

So you need to use -E md5 to get the md5 fingerprint as in the Unifi Controller UI. You can then identify exactly which local ssh key you have uploaded.

ssh-keygen -lf ~/.ssh/id_rsa.pub
ssh-keygen -E md5 -lf ~/.ssh/id_rsa.pub

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.