Fingerprint


SSH key fingerprint

ssh-vault can be used to print the ssh key fingerprint compatible with the format that AWS uses.

To get the fingerprint for the key ~/.ssh/id_rsa.pub:

$ ssh-vault -f

For example to get the fingerprint for user Bob this could be used:

$ ssh-vault -u bob -f
24:c6:6f:33:49:de:d7:bb:77:cf:e9:78:4c:e9:25:5f

Using -u for remote server:

$ ssh-vault -u https://gitlab.com/bob.keys -f
f8:33:95:0e:6e:35:93:39:18:cf:af:0d:34:5a:34:df

Or for a key that locally stored:

$ ssh-vault -k /path/to/key -f

When using the option -u username if the user has multiple keys and the fingerprint for key 2 is required, this can be used:

$ ssh-vault -u bob -k 2 -f
a9:55:9b:e3:02:1e:21:a8:2c:f0:29:50:b3:5d:da:bc

Using a remote server and key numer 2:

$ ssh-vault -u https://gitlab.com/bob.keys -k 2 -f
2a:a9:bf:d2:8b:41:6e:bf:f8:b3:56:d5:90:28:33:44
comments powered by Disqus