AWS

Authorizing AWS Inbound Traffic For Your IP Using CLI

One of the security measures you may want to implement in your AWS setup is to have a bastion host or limit ssh access from the whole world and only use your private network.

If you have your own account and your instances are exposed to the public you should at least limit ssh access by IP. Here’s how to do it.

First, get your current IP.

Find out the security group to which your instance is assigned.

Once we have our security group we can see what inbound rules we have.

Now we need to revoke our old IP and authorize our new IP.

You should now be able to ssh into your ec2 instance and only your IP will be allowed through. You can read more about securing your ec2 instance at Tips for Securing Your EC2 Instance

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload CAPTCHA.