My AWS instance says it is configured to use the only keypair I have on my account and it has a fingerprint in the format of:
3c:64:a7:85:53:3f:81:1c:24:5a:d2:6a:5b:76:47:da:f3:14:63:88
I have a key.pem file on my computer. How do I verify that this pem file matches up with the above key-pair fingerprint provided by AWS?
I have attempted the following:
ssh-keygen -lf key.pem
That outputs something in this format:
2048 SHA256:TpL6i8y1uCd26IUVVc5UHFluP7GLKD/T3O1+K4Pc0qg no comment (RSA)
The encoding scheme is different, I am not able to tell if they are equivalent.
I am trying to debug why I am unable to ssh into my instance with this key, this is the first step I am trying.
Best Answer
There are two methods, depending on how you created your SSH key as described in Verifying Your Key Pair's Fingerprint in AWS docs.
Here is my SSH key fingerprint in the console:
And here is how to get the same fingerprint from the command line:
If that doesn't match try this:
Hope that helps :)