Answer by Network Assasin for single keypair for all regions
Create a new ssh key pair in the console or use the one that you already own. Generate a ssh public key from the ssh private key (pem > pub) $ ssh-keygen -y -f ~/.ssh/rainman_key.pem >>...
View ArticleAnswer by shantanuo for single keypair for all regions
Upload the pem file that I need to copy to other regions and then ... # chmod 400 /home/ec2-user/mydec15a.pem # ssh-keygen -y -f /home/ec2-user/mydec15a.pem >> ~/.ssh/MySSHKeyPair.pub # aws ec2...
View ArticleAnswer by Diego Roberto Dos Santos for single keypair for all regions
If you want to create a ssh key pair in the AWS Console and upload this key pair to all other regions. Create a new ssh key pair in the console or use the one that you already own. Generate a ssh...
View ArticleAnswer by zarak for single keypair for all regions
You can also use the aws cli to transfer the key-pair to another region. aws ec2 import-key-pair --key-name my-key --public-key-material file://~/.ssh/id_rsa.pub --region my-region See this issue on...
View ArticleAnswer 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...
View ArticleAnswer by ajk for single keypair for all regions
If you can import your own RSA public key, then you can share an Amazon generated key across regions: Using the key you want to share, log in to an instance in the region where it was generated. Open...
View ArticleAnswer by Steffen Opel for single keypair for all regions
This has meanwhile been enabled by means of importing your own keypair(s), see the introductory post New Amazon EC2 Feature: Bring Your Own Keypair: You can now import your own RSA keypair (or the...
View Articlesingle keypair for all regions
Can I use the same key pair file across all regions? I want to keep the ssh access as simple as possible. I have set up one file for each region. I tried to upload the same file in different region...
View ArticleAnswer by Scott Ford for single keypair for all regions
You can also do this do the region list with expansion to get the list of regions dynamically...for region in $(aws ec2 describe-regions --all-regions --query "Regions[].{Name:RegionName}" --output...
View Article