I have an EC2 instance with an elastic IP that hasn't changed in a little while, nor has the ssh key Amazon installed in the main user account used to ssh into the server after instantiation.
I recently decided I should actually learn how to check my RSA fingerprints. So, I cleared out the known_hosts
file on my local machine.
Amazon gives you a *.pem
file to use as your private key on new EC2 instances. So, I used the following command to generate the public half of the key locally:
ssh-keygen -yf my-key.pem > my-key.pub
Then, I got the fingerprint of that key using the following command:
ssh-keygen -lf my-key.pub
Then, I started up an ssh connection to my EC2 instance and--the fingerprints didn't match!
How f'ed am I? Did I do anything wrong that would explain the fact that my fingerprints didn't match?