Back
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 but it did not not work as expected.
You can definitely use a single key pair across multiple AWS regions as mentioned in this Amazon's post.
What you do is, you upload your own SSH public key to EC2 and it is passed to new instances when they are launched.
Visit the following link to learn how you can import your own public key.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#how-to-generate-your-own-key-and-import-it-to-aws
Learn how we helped 50,000+ professionals like you !
31k questions
32.8k answers
501 comments
693 users