I have a vpc with 2 private and 2 public subnets. I have added ec2 instance in a public subnet. The EC2 is given a private ip according to CIDR of VPN and public subnet.
Route table contains a row of 0.0.0.0/0 with internet gateway the public subnet is associated with this route table. EC2 is also healthy
I am unable to troubleshoot how to ssh to my instance. I am new to VPC and this is my first time working with my own so I might have missed something.