---
title: "Discussion on \"How to access your EC2 instance via SSH only from specific IP-Addresses\" | Hashnode"
description: "Discussion on \"How to access your EC2 instance via SSH only from specific IP-Addresses\". In this article, we will learn how to create a Security Group, that enables SSH traffic through port 22 from a Managed Prefix List. The  Managed Prefix List allows us to conveniently manage your public IP-addresses that can connect to our EC2 instanc..."
url: "https://hashnode.com/posts/how-to-access-your-ec2-instance-via-ssh-only-from-specific-ip-addresses/64840018a965672e616eb82e"
---

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

Discussion

# [How to access your EC2 instance via SSH only from specific IP-Addresses](https://schmidtdennis.de/how-to-access-your-ec2-instance-via-ssh-only-from-specific-ip-addresses?utm_source=hashnode&utm_medium=feed)

In this article, we will learn how to create a Security Group, that enables SSH traffic through port 22 from a Managed Prefix List. The Managed Prefix List allows us to conveniently manage your public IP-addresses that can connect to our EC2 instanc...

Jun 10, 2023 · 3 min read · schmidtdennis.de  
Updated Jun 11, 2023  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#securitygroups](https://hashnode.com/tag/securitygroups)

## Written by

[Dennis Schmidt](https://hashnode.com/@schmidtdennis)

@schmidtdennis · Germany

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

Software Engineer at BMW

Software Engineer at BMW, Oracle Certified Professional Java SE 11 Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
