Skip to main content
techyanuj
New Member
June 30, 2020
Question

Trying to access Private Subnet EC2 instance with site-to-site VPN

  • June 30, 2020
  • 1 reply
  • 2320 views

I am still learning AWS online and I have an AWS VPC with a public and private subnet. The public subnet has 1 EC2 instance and the private subnet also has 1 EC2 instance. If I do a site to site VPN from my work site to the VPC. Can I ssh into the private subnet EC2 instance using the private IP? Or do I have to do a Bastian host to access the private subnet EC2 instance?

1 reply

isamt
New Member
July 1, 2020

If you have created the VPC by selecting option "VPC with Public and Private Subnets and Hardware VPN Access" for example then you can route from the private subnet or public subnet to your on-site network.

 

After that you can directly access devices on the public or private subnet provided the access list has been updated to allow the traffic.