Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (790 points)
How to replace or add key pair for EC2 instance on a Windows system?

1 Answer

0 votes
by (1.4k points)
To replace the key pair of a running instance, the following steps must be followed :

1) Go to AWS Console and create a new key pair

2) Generate a public key from the recently generated private key

3) Copy the generated public key into ~/ssh/authorized_keys of server

4) Delete the previous key from  ~/ssh/authorized_keys of server

5) SSH into the instance using the new key

Hope this works!

In case, there is still some confusion, refer to this video on creating EC2 instances :

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

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

+1 vote
1 answer
asked Sep 26, 2019 in AWS by chandra (29.3k points)
0 votes
1 answer
+1 vote
1 answer

Browse Categories

...