Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (140 points)
0

If I have an AWS VPC with a private and public subnet. The public subnet has 1 EC2 instance and the private subnet has 1 EC2 instance as well. If I do a site to site VPN to my VPC from my work location. Can I access my private subnet EC2 instance via ssh using the private ip? Or do I have to do a Bastian host from my public subnet to access my private subnet EC2 instance?

1 Answer

0 votes
by (18.2k points)

Yes, you can access your EC2 instance in private subnet from your work location. You can configure static routing in your VPN connection. Then you will be prompted to manually enter the IP prefix for your work location network when you create the site to site VPN connection. Then you would be able to connect to your instance.

Related questions

0 votes
0 answers

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories

...