Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (12.9k points)

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.

1 Answer

0 votes
by (18.2k points)

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 

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...