---
title: "Discussion on \"How to Restrict Permissions for Your PEM Key on Windows and Connect to Your EC2 Instance Securely\" | Hashnode"
description: "Discussion on \"How to Restrict Permissions for Your PEM Key on Windows and Connect to Your EC2 Instance Securely\". When connecting to an AWS EC2 instance, you need a private key file for authentication. AWS provides this key in the PEM (Privacy Enhanced Mail) format, commonly used with OpenSSH on Linux, macOS, and even Windows 10/11. If you're using PuTTY on Wind..."
url: "https://hashnode.com/posts/how-to-restrict-permissions-for-your-pem-key-on-windows-and-connect-to-your-ec2-instance-securely/674c04861e781a24bdfacd9a"
---

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

Discussion

# [How to Restrict Permissions for Your PEM Key on Windows and Connect to Your EC2 Instance Securely](https://spoorti.hashnode.dev/how-to-restrict-permissions-for-your-pem-key-on-windows-and-connect-to-your-ec2-instance-securely?utm_source=hashnode&utm_medium=feed)

When connecting to an AWS EC2 instance, you need a private key file for authentication. AWS provides this key in the PEM (Privacy Enhanced Mail) format, commonly used with OpenSSH on Linux, macOS, and even Windows 10/11. If you're using PuTTY on Wind...

Dec 1, 2024 · 3 min read · spoorti.hashnode.dev  
Read the article

-   [#devops](https://hashnode.com/tag/devops)
-   [#devops-articles](https://hashnode.com/tag/devops-articles)
-   [#ssh](https://hashnode.com/tag/ssh)
-   [#aws](https://hashnode.com/tag/aws)
-   [#ec2](https://hashnode.com/tag/ec2)
-   [#windows](https://hashnode.com/tag/windows)

## Written by

[Spoorti Shetty](https://hashnode.com/@spoortishetty)

@spoortishetty

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

Sikho aur sikhao :)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
