LoginSignup
15
15

More than 5 years have passed since last update.

AWSのRegion間で共通なKey Pairを用いる

Posted at

AWS EC2のKey PairはRegion間で別管理になるが、ImportすることでRegion間で共通なKey Pairを利用出来る。
ここではManagement ConsoleでRegion間で共通なKey Pairを用いるための手順をメモする。

利用手順

  • あるRegionのEC2 Management ConsoleのKey PairsでCreate Key Pairし秘密鍵をダウンロードする
  • ローカル環境で秘密鍵から公開鍵を生成する
 $ ssh-keygen -y -f [ダウンロードした秘密鍵]
  • 別のRegionのEC2 Management ConsoleのKey PairsでImport Key Pairする

    • Keypair Nameには適当な名前を入れる
    • Public Key contentsには1つ前の手順で表示された文字列を入れる
  • ImportしたKeyを使用したEC2にダウンロードした秘密鍵でアクセス出来る

15
15
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
15
15