Restrict SSH within EC2 Instance Connect and Your Region

How to restrict SSH connection within EC2 Instance Connect

Md Shamim
cloudterms.io
Sep 27, 2023

--

We can restrict SSH connection within our region and EC2 instance connect using the IP Ranges of the EC2 instance connect.

Search for the IP range of your region and service from the following link:

In my case, my region code is ap-northeast-1 and service is EC2_INSTANCE_CONNECT :

Now, configure the security group accordingly:

And then, attach the security group with the target instances.

If you found this article useful, please click on the Follow πŸ‘‰ and Clap πŸ‘ buttons to support me in writing more articles like this.
Thank you ❀

πŸ”” Follow me on LinkedIn | GitHub | Twitter

--

--

Md Shamim
cloudterms.io

Cloud Infrastructure Engineer | AWS Community Builder | AWS | Kubernetes | GitHub Actions | Terraform | πŸ‘‡πŸ‘‰ linkedin.com/in/shamimice03 github.com/shamimice03