LoginSignup
2
2

More than 3 years have passed since last update.

[EC2]キーペアのフィンガープリントを確認する方法

Posted at

ssh-keygen -l -f (秘密鍵|公開鍵) -E (md5|sha1) だとAWSのコンソールに表示されるフィンガープリントと一致しない。

AWSのコンソール上で作成した秘密鍵からフィンガープリントを作成

openssl pkcs8 -in 秘密鍵 -nocrypt -topk8 -outform DER | openssl sha1 -c

ssh-keygenを使って自分で作成したキーペアからフィンガープリントを作成

ssh-keygen -f (秘密鍵|公開鍵) -e -m PKCS8 | openssl pkey -pubin -pubout -outform DER | openssl md5 -c
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2