Score:0

How to fix the security group to the EC2 instance to allow specific IP address

id flag

I can connect to AWS EC2 Instance using PuTTY at my home by laptop. But when I bring the laptop to some cafe that provides free Wifi, it ends up with timeout error.

In order to solve this problem, I need to fix the security group attached to the EC2 instance to allow the connection from the cafe’s public IP.

Here is what I've done.

1.Log into AWS ec2

  1. Search for "VPC" in the search bar at the top

  2. Click on VPC

  3. Click on "security groups" on the left

After that, I have no idea what should I do. I guess I should register Cafe's IP address to security groups but I don't know how to do...

Please advise me next step.

cn flag
I suggest you read [the documentation](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html) from AWS, or perhaps look into some AWS training given the recent questions you have been posting.
Score:0
us flag

When you are at a Cafe and use public wifi, i suggest to use this site to get your correct public IP address.

https://showip.net/

From your Security Group, please follow the below steps:

  1. Edit Inbound rule
  2. Add an ingress rule with SSH/22 and input your /32 (Remember to use /32)
  3. Click "Save"

Reference: https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html

At step 2, you can use a button named "My IP" which AWS automatically loads your public IP address.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.