Quantcast
Channel: single keypair for all regions - Stack Overflow
Viewing all articles
Browse latest Browse all 9

Answer by Raj B for single keypair for all regions

$
0
0

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 all articles
Browse latest Browse all 9

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>