---
title: "Discussion on \"How to Recover EC2 Access After Losing Your .pem Key\" | Hashnode"
description: "Discussion on \"How to Recover EC2 Access After Losing Your .pem Key\". Step 1: Create a New Key Pair\n\nGo to EC2 Dashboard → Key Pairs\n\nClick Create Key Pair\n\nDownload and store the new .pem file safely\n\n\nStep 2: Stop the Affected Instance\n\nGo to Instances\n\nStop the EC2 instance you can’t access\n\n\n\nYou can’t modify volum..."
url: "https://hashnode.com/posts/how-to-recover-ec2-access-after-losing-your-pem-key/6833f18c45272553802c5938"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Recover EC2 Access After Losing Your .pem Key](https://durkeshwaran.hashnode.dev/how-to-recover-ec2-access-after-losing-your-pem-key?utm_source=hashnode&utm_medium=feed)

Step 1: Create a New Key Pair Go to EC2 Dashboard → Key Pairs Click Create Key Pair Download and store the new .pem file safely Step 2: Stop the Affected Instance Go to Instances Stop the EC2 instance you can’t access You can’t modify volum...

May 26, 2025 · 2 min read · durkeshwaran.hashnode.dev  
Read the article

-   [#ssh-key-pair-for-ec2](https://hashnode.com/tag/ssh-key-pair-for-ec2)
-   [#keypair](https://hashnode.com/tag/keypair)
-   [#ec2-instance](https://hashnode.com/tag/ec2-instance)
-   [#aws](https://hashnode.com/tag/aws)
-   [#ssh](https://hashnode.com/tag/ssh)

## Written by

[Durkesh blogs](https://hashnode.com/@Durkeshwaran)

@Durkeshwaran

  
[View profile](https://hashnode.com/@Durkeshwaran)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
