How to Import an Existing SSH Key to AWS as a Key Pair?

Table of Contents

How to Import an Existing Public Key to AWS

 

0:00
/0:42

Loom: https://loom.com/share/216cefe795ba49218cd3d7d907725fff

Step 1: Copy Your Existing Public Key 0:00

generated-image-at-00:00:00
  • Locate your existing public key.
  • Copy the public key to your clipboard.

 

Step 2: Import the Key Pair to AWS 0:07

generated-image-at-00:00:07
  • Go to your AWS account.
  • Navigate to the section for key pairs.
  • Click on 'Import Key Pair'.
  • Paste your copied public key into the designated field.

 

Step 3: Confirm the Import 0:22

generated-image-at-00:00:22
  • After pasting, confirm the import.
  • The key pair is now available in your AWS account.

 

Step 4: Use the Key Pair When Creating an EC2 Instance 0:35

generated-image-at-00:00:35
  • When launching a new EC2 instance, specify the imported key pair.
  • You can now access your instance using this key without creating a new one.

 

Conclusion 0:42

generated-image-at-00:00:42
  • You have successfully imported your existing public key to AWS.
  • No need to create new key pairs or worry about storage.