Quantcast
Viewing latest article 5
Browse Latest Browse All 9

Answer by Raj B for single keypair for all regions

The AWS generated key can be transferred to another region:

  • Log into the instance that was created with the key that you want to transfer.
  • Install ec2-api-tools if not already present (sudo apt-get install ec2-api-tools)

Use this command

ec2-import-keypair keypair-name --public-key-file ~/.ssh/authorized_keys --region aws-region

With above steps, I transferred the AWS created key from Singapore region to Oregon region and same key worked perfectly fine for me.

Please visit this link as well:

https://forums.aws.amazon.com/thread.jspa?threadID=52654


Viewing latest article 5
Browse Latest Browse All 9

Trending Articles